Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changepacks/changepack_log_TdRMiDSjcjQCHtCLj3xBB.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"bindings/devup-ui-wasm/package.json":"Patch"},"note":"Support tailwind","date":"2026-02-03T17:44:43.722386900Z"}
11 changes: 11 additions & 0 deletions benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ function clearBuildFile() {
recursive: true,
force: true,
})
if (existsSync('./benchmark/next-tailwind-turbo-devup-ui/.next'))
rmSync('./benchmark/next-tailwind-turbo-devup-ui/.next', {
recursive: true,
force: true,
})
if (existsSync('./benchmark/next-tailwind-turbo-devup-ui/df'))
rmSync('./benchmark/next-tailwind-turbo-devup-ui/df', {
recursive: true,
force: true,
})
}

function checkDirSize(path) {
Expand Down Expand Up @@ -135,5 +145,6 @@ result.push(benchmark('devup-ui-single'))
result.push(benchmark('tailwind-turbo'))
result.push(benchmark('devup-ui-single-turbo'))
result.push(benchmark('vanilla-extract-devup-ui'))
result.push(benchmark('tailwind-turbo-devup-ui'))

console.info(result.join('\n'))
41 changes: 41 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Nextjs App
3 changes: 3 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { DevupUI } from '@devup-ui/next-plugin'

export default DevupUI({})
29 changes: 29 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "next-tailwind-turbo-devup-ui-benchmark",
"version": "0.1.0",
"type": "module",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build --experimental-debug-memory-usage",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "^16.1",
"react": "^19.2",
"react-dom": "^19.2",
"react-icons": "^5.5",
"@devup-ui/react": "workspace:^"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1",
"postcss": "^8.5",
"@types/node": "^25",
"@types/react": "^19",
"@types/react-dom": "^19",
"typescript": "^5",
"tailwindcss": "^4.1",
"@devup-ui/next-plugin": "workspace:^"
}
}
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/public/file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/public/globe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/public/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/public/vercel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions benchmark/next-tailwind-turbo-devup-ui/public/window.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
18 changes: 18 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { Metadata } from 'next'

export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}
43 changes: 43 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
'use client'

import { Box, Button } from '@devup-ui/react'
import { useState } from 'react'

export default function HomePage() {
const [color, setColor] = useState('text-yellow-500')
const [enabled, setEnabled] = useState(false)

return (
<div>
<Box as="p" className="bg-blue-500 text-white p-2">
Track & field champions:
</Box>
<Box
as="section"
className={`${color} cursor-pointer relative py-7 hover:bg-yellow-500 hover:cursor-cell text-3xl`}
data-testid="box"
>
<div>hello</div>
<div>hello</div>
</Box>
<Box as="p" className="text-gray-900">
text
</Box>
<Box
className={`${enabled ? 'text-green-500' : 'text-blue-500'} text-3xl pr-5`}
>
hello
</Box>
<Box className="text-xs sm:text-3xl">hello</Box>
<Button
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mt-4"
onClick={() => {
setColor('text-blue-500')
setEnabled((prev) => !prev)
}}
>
Change
</Button>
</div>
)
}
34 changes: 34 additions & 0 deletions benchmark/next-tailwind-turbo-devup-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"df/*.d.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules"]
}
23 changes: 23 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading