-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dashboard): Colors and button setup (#6594)
- Loading branch information
Showing
7 changed files
with
131 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
"typescript.preferences.importModuleSpecifier": "non-relative", | ||
"tailwindCSS.experimental.classRegex": [ | ||
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | ||
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
import { StrictMode } from "react"; | ||
import { createRoot } from "react-dom/client"; | ||
import { createBrowserRouter, RouterProvider } from "react-router-dom"; | ||
import "./index.css"; | ||
import ErrorPage from "@/components/error-page"; | ||
import Root from "@/routes/root"; | ||
import { Workflows } from "@/routes/workflows"; | ||
import { StrictMode } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { createBrowserRouter, RouterProvider } from 'react-router-dom'; | ||
import './index.css'; | ||
import ErrorPage from '@/components/error-page'; | ||
import Root from '@/routes/root'; | ||
import { Workflows } from '@/routes/workflows'; | ||
import { Home } from '@/routes/home'; | ||
|
||
const router = createBrowserRouter([ | ||
{ | ||
path: "/", | ||
path: '/', | ||
element: <Root />, | ||
errorElement: <ErrorPage />, | ||
children: [ | ||
{ path: '/', element: <Home /> }, | ||
{ | ||
path: "workflows", | ||
path: 'workflows', | ||
element: <Workflows />, | ||
}, | ||
], | ||
}, | ||
]); | ||
|
||
createRoot(document.getElementById("root")!).render( | ||
createRoot(document.getElementById('root')!).render( | ||
<StrictMode> | ||
<RouterProvider router={router} /> | ||
</StrictMode>, | ||
</StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Button } from '@/components/primitives/button'; | ||
|
||
export const Home = () => { | ||
return ( | ||
<div className="flex min-h-[2000px] w-full flex-col gap-8"> | ||
<h1>Home page</h1> | ||
<div className="flex w-full flex-col items-center justify-center gap-4"> | ||
<h2 className="text-lg font-semibold">Buttons</h2> | ||
<Button>Primary button</Button> | ||
<Button variant="novu">Novu button</Button> | ||
<Button variant="destructive">Destructive button</Button> | ||
<Button variant="ghost">Ghost button</Button> | ||
<Button variant="outline">Outline button</Button> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { | ||
darkMode: ['class'], | ||
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], | ||
darkMode: ['class'], | ||
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'], | ||
theme: { | ||
extend: { | ||
borderRadius: { | ||
lg: 'var(--radius)', | ||
md: 'calc(var(--radius) - 2px)', | ||
sm: 'calc(var(--radius) - 4px)' | ||
}, | ||
colors: { | ||
background: 'hsl(var(--background))', | ||
foreground: 'hsl(var(--foreground))', | ||
card: { | ||
DEFAULT: 'hsl(var(--card))', | ||
foreground: 'hsl(var(--card-foreground))' | ||
}, | ||
popover: { | ||
DEFAULT: 'hsl(var(--popover))', | ||
foreground: 'hsl(var(--popover-foreground))' | ||
}, | ||
primary: { | ||
DEFAULT: 'hsl(var(--primary))', | ||
foreground: 'hsl(var(--primary-foreground))' | ||
}, | ||
secondary: { | ||
DEFAULT: 'hsl(var(--secondary))', | ||
foreground: 'hsl(var(--secondary-foreground))' | ||
}, | ||
muted: { | ||
DEFAULT: 'hsl(var(--muted))', | ||
foreground: 'hsl(var(--muted-foreground))' | ||
}, | ||
accent: { | ||
DEFAULT: 'hsl(var(--accent))', | ||
foreground: 'hsl(var(--accent-foreground))' | ||
}, | ||
destructive: { | ||
DEFAULT: 'hsl(var(--destructive))', | ||
foreground: 'hsl(var(--destructive-foreground))' | ||
}, | ||
border: 'hsl(var(--border))', | ||
input: 'hsl(var(--input))', | ||
ring: 'hsl(var(--ring))', | ||
chart: { | ||
'1': 'hsl(var(--chart-1))', | ||
'2': 'hsl(var(--chart-2))', | ||
'3': 'hsl(var(--chart-3))', | ||
'4': 'hsl(var(--chart-4))', | ||
'5': 'hsl(var(--chart-5))' | ||
} | ||
} | ||
} | ||
extend: { | ||
borderRadius: { | ||
lg: 'var(--radius)', | ||
md: 'calc(var(--radius) - 2px)', | ||
sm: 'calc(var(--radius) - 4px)', | ||
}, | ||
colors: { | ||
background: 'hsl(var(--background))', | ||
foreground: 'hsl(var(--foreground))', | ||
card: { | ||
DEFAULT: 'hsl(var(--card))', | ||
foreground: 'hsl(var(--card-foreground))', | ||
}, | ||
popover: { | ||
DEFAULT: 'hsl(var(--popover))', | ||
foreground: 'hsl(var(--popover-foreground))', | ||
}, | ||
primary: { | ||
DEFAULT: 'hsl(var(--primary))', | ||
foreground: 'hsl(var(--primary-foreground))', | ||
}, | ||
novu: { | ||
DEFAULT: 'hsl(var(--novu))', | ||
foreground: 'hsl(var(--novu-foreground))', | ||
}, | ||
muted: { | ||
DEFAULT: 'hsl(var(--muted))', | ||
foreground: 'hsl(var(--muted-foreground))', | ||
}, | ||
accent: { | ||
DEFAULT: 'hsl(var(--accent))', | ||
foreground: 'hsl(var(--accent-foreground))', | ||
}, | ||
destructive: { | ||
DEFAULT: 'hsl(var(--destructive))', | ||
foreground: 'hsl(var(--destructive-foreground))', | ||
}, | ||
border: 'hsl(var(--border))', | ||
input: 'hsl(var(--input))', | ||
ring: 'hsl(var(--ring))', | ||
chart: { | ||
1: 'hsl(var(--chart-1))', | ||
2: 'hsl(var(--chart-2))', | ||
3: 'hsl(var(--chart-3))', | ||
4: 'hsl(var(--chart-4))', | ||
5: 'hsl(var(--chart-5))', | ||
}, | ||
}, | ||
}, | ||
}, | ||
plugins: [require("tailwindcss-animate")], | ||
plugins: [require('tailwindcss-animate')], | ||
}; |