Skip to content
Open
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
43 changes: 43 additions & 0 deletions examples/devup-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# Devup UI artifacts
df
25 changes: 25 additions & 0 deletions examples/devup-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Devup UI Example

This example contains a simple implementation of [Devup UI](https://devup-ui.com/).

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [Bun](https://bun.sh/docs/cli/bunx) to bootstrap the example:

```bash
npx create-next-app --example devup-ui devup-ui-app
```

```bash
yarn create next-app --example devup-ui devup-ui-app
```

```bash
pnpm create next-app --example devup-ui devup-ui-app
```

```bash
bunx create-next-app --example devup-ui devup-ui-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
29 changes: 29 additions & 0 deletions examples/devup-ui/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { resetCss } from "@devup-ui/reset-css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";

const InterFont = Inter({
weight: ["400", "500", "700"],
display: "swap",
subsets: ["latin"],
variable: "--font-inter",
});

export const metadata: Metadata = {
title: "Create Next App with Devup UI",
description: "Generated by create next app",
};

resetCss()

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={`${InterFont.variable}`}>
<body>{children}</body>
</html>
);
}
21 changes: 21 additions & 0 deletions examples/devup-ui/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Box, Button, css } from "@devup-ui/react";

const styles = css({
display: "flex",
flexDirection: "column",
alignItems: "center",
gap: "2rem",
p: "6rem",
minH: "100vh",
});

export default function Home() {
return (
<main className={styles}>
<Button>Click me</Button>
<Box fontSize="2rem">
Hello Devup UI
</Box>
</main>
);
}
6 changes: 6 additions & 0 deletions examples/devup-ui/next.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { DevupUI } from '@devup-ui/next-plugin'
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {}

export default DevupUI(nextConfig)
23 changes: 23 additions & 0 deletions examples/devup-ui/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint ."
},
"dependencies": {
"next": "latest",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"@devup-ui/react": "^1.0.26",
"@devup-ui/reset-css": "^1.0.17"
},
"devDependencies": {
"@types/node": "^24.10.1",
"@types/react": "^19.2.6",
"@types/react-dom": "^19.2.3",
"typescript": "^5.9.3",
"@devup-ui/next-plugin": "^1.0.55"
}
}
42 changes: 42 additions & 0 deletions examples/devup-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"compilerOptions": {
"target": "es6",
"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": {
"@/*": [
"./*"
]
}
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"df/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
Loading