diff --git a/src/dev-server.tsx b/src/dev-server.tsx index 37e86a5..058c27e 100644 --- a/src/dev-server.tsx +++ b/src/dev-server.tsx @@ -1,39 +1,38 @@ -import { StrictMode } from 'react' -import { createRoot } from 'react-dom/client' -import { - createBrowserRouter, - RouterProvider, -} from "react-router-dom"; -import { Index } from './dev-server/index'; -import './dev-server.css' -import '@inkdropapp/css/reset.css' -import '@inkdropapp/css/tokens.css' -import '@inkdropapp/base-ui-theme/styles/theme.css' -import { ColorTokensPage } from './dev-server/color-tokens'; -import { VariablesPage } from './dev-server/variables'; +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import { createBrowserRouter, RouterProvider } from "react-router-dom"; +import { Index } from "./dev-server/index"; +import "./dev-server.css"; +import "@inkdropapp/css/reset.css"; +import "@inkdropapp/css/tokens.css"; +import "@inkdropapp/base-ui-theme/styles/theme.css"; +import { ColorTokensPage } from "./dev-server/color-tokens"; +import { VariablesPage } from "./dev-server/variables"; +import { ComponentsPage } from "./dev-server/components"; const cssFiles = [ - '/Users/nora/Developments/inkdrop/plugins/solarized-light-ui/styles/tokens.css', - '/Users/nora/Developments/inkdrop/plugins/solarized-light-ui/styles/theme.css' -] + "/Users/nora/Developments/inkdrop/plugins/solarized-light-ui/styles/tokens.css", + "/Users/nora/Developments/inkdrop/plugins/solarized-light-ui/styles/theme.css", +]; cssFiles.forEach((file) => { - import( /* @vite-ignore */ file) -}) + import(/* @vite-ignore */ file); +}); const router = createBrowserRouter([ { path: "/", element: , children: [ - { path: '', element: }, - { path: 'tokens', element: } - ] + { path: "", element: }, + { path: "tokens", element: }, + { path: "components", element: }, + ], }, ]); -createRoot(document.getElementById('root')!).render( +createRoot(document.getElementById("root")!).render( , -) +); diff --git a/src/dev-server/components.tsx b/src/dev-server/components.tsx new file mode 100644 index 0000000..eb59d7c --- /dev/null +++ b/src/dev-server/components.tsx @@ -0,0 +1,29 @@ +import { getCSSVariables } from "./get-css-variables"; + +export const ComponentsPage = () => { + return ( + <> +

Components

+
+
+

Button

+
+ + + + +
+
+
+

Button

+
+ + + + +
+
+
+ + ); +}; diff --git a/src/dev-server/nav.tsx b/src/dev-server/nav.tsx index 179d276..cd2f721 100644 --- a/src/dev-server/nav.tsx +++ b/src/dev-server/nav.tsx @@ -2,9 +2,10 @@ import { Link } from "react-router-dom"; export const Nav = () => { return ( -
- Variables - Color Tokens +
+ Variables + Color Tokens + Components
- ) -} + ); +};