├── .babelrc ├── .github └── workflows │ ├── publish.yml │ └── storybook.yml ├── .gitignore ├── .storybook ├── Theme.js ├── main.js ├── manager.js ├── package.json ├── preview-head.html ├── preview.js ├── public │ └── catppuccin-ui.svg └── storybook.css ├── LICENSE ├── README.md ├── jsconfig.json ├── package-lock.json ├── package.json ├── postcss.config.js ├── src ├── components │ ├── Anchor │ │ ├── Anchor.stories.jsx │ │ └── index.js │ ├── Avatar │ │ ├── Avatar.stories.jsx │ │ └── index.js │ ├── Button │ │ ├── Button.stories.jsx │ │ └── index.js │ ├── Card │ │ ├── Card.stories.jsx │ │ └── index.js │ ├── Checkbox │ │ ├── Checkbox.stories.jsx │ │ ├── _checkbox.css │ │ └── index.js │ ├── Heading │ │ ├── Heading.stories.jsx │ │ └── index.js │ ├── Input │ │ ├── Input.stories.jsx │ │ └── index.js │ ├── List │ │ ├── List.stories.jsx │ │ └── index.js │ ├── Paragraph │ │ ├── Paragraph.stories.jsx │ │ └── index.js │ ├── Radio │ │ ├── Radio.stories.jsx │ │ ├── _radio.css │ │ └── index.js │ └── Switch │ │ ├── Switch.stories.jsx │ │ ├── _switch.css │ │ └── index.js ├── constants │ └── colors.js ├── fonts.css ├── index.js ├── libs │ ├── id.js │ ├── shorthash.js │ └── variants.js ├── main.css ├── patterns │ ├── Cards.stories.jsx │ └── Forms.stories.jsx └── stories │ ├── Introduction.stories.mdx │ └── assets │ ├── code-brackets.svg │ ├── colors.svg │ ├── comments.svg │ ├── direction.svg │ ├── flow.svg │ ├── plugin.svg │ ├── repo.svg │ └── stackalt.svg └── tailwind.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@babel/plugin-proposal-optional-chaining", 4 | "@babel/plugin-proposal-nullish-coalescing-operator" 5 | ] 6 | } -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | on: push 2 | 3 | jobs: 4 | publish: 5 | runs-on: ubuntu-latest 6 | steps: 7 | - uses: actions/checkout@v3 8 | - uses: actions/setup-node@v3 9 | with: 10 | node-version: 16 11 | cache: 'npm' 12 | - run: npm install 13 | - run: npm run build 14 | - run: npm run prepare-config 15 | - name: Release as Next 16 | uses: JS-DevTools/npm-publish@v1 17 | with: 18 | access: public 19 | token: ${{ secrets.NPM_TOKEN }} 20 | -------------------------------------------------------------------------------- /.github/workflows/storybook.yml: -------------------------------------------------------------------------------- 1 | name: Build and Deploy 2 | on: 3 | push: 4 | paths: ["src/**"] # Trigger the action only when files change in the folders defined here 5 | workflow_dispatch: 6 | jobs: 7 | build-and-deploy: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - name: Checkout 11 | uses: actions/checkout@v3 12 | - name: Setup Node 13 | uses: actions/setup-node@v3 14 | with: 15 | node-version: 16 16 | cache: 'npm' 17 | - name: Install & Build 18 | run: | 19 | npm ci 20 | npm run build-storybook 21 | - name: Deploy 22 | uses: peaceiris/actions-gh-pages@v3 23 | with: 24 | github_token: ${{ secrets.GITHUB_TOKEN }} 25 | publish_dir: ./docs-build 26 | cname: ui.catppuccin.com 27 | user_name: 'github-actions[bot]' 28 | user_email: 'github-actions[bot]@users.noreply.github.com' 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | /docs-build 14 | /dist 15 | /storybook-static 16 | 17 | # misc 18 | .DS_Store 19 | .env.local 20 | .env.development.local 21 | .env.test.local 22 | .env.production.local 23 | 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | -------------------------------------------------------------------------------- /.storybook/Theme.js: -------------------------------------------------------------------------------- 1 | import { create } from "@storybook/theming"; 2 | import { variants } from "@catppuccin/palette"; 3 | 4 | const flavour = "mocha"; 5 | const palette = Object.entries(variants[flavour]).map(([k, v]) => { 6 | return { 7 | [k]: v.hex, 8 | }; 9 | }).reduce((acc, curr) => ({ ...acc, ...curr }), {}); 10 | 11 | export default create({ 12 | base: "dark", 13 | 14 | colorPrimary: palette.pink, 15 | colorSecondary: palette.sapphire, 16 | 17 | appBg: palette.crust, 18 | appContentBg: palette.mantle, 19 | appBorderColor: palette.crust, 20 | appBorderRadius: 4, 21 | 22 | barTextColor: palette.text, 23 | barSelectedColor: palette.rosewater, 24 | barBg: palette.mantle, 25 | 26 | inputBg: palette.mantle, 27 | inputBorder: palette.crust, 28 | inputTextColor: palette.text, 29 | inputBorderRadius: 4, 30 | 31 | textColor: palette.text, 32 | textInverseColor: palette.crust, 33 | fontBase: "'Inter', sans-serif", 34 | fontCode: "'Fira Code', monospace", 35 | 36 | brandTitle: "Catppuccin UI", 37 | brandUrl: "https://catppuccin.com", 38 | brandImage: "/catppuccin-ui.svg", 39 | brandTarget: "_blank", 40 | }); 41 | -------------------------------------------------------------------------------- /.storybook/main.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | module.exports = { 4 | "stories": [ 5 | "../src/**/*.stories.mdx", 6 | "../src/**/*.stories.@(js|jsx|ts|tsx)" 7 | ], 8 | "addons": [ 9 | "@storybook/addon-a11y", 10 | "@storybook/addon-links", 11 | "@storybook/addon-essentials", 12 | "@storybook/addon-interactions", 13 | "@storybook/preset-create-react-app", 14 | ], 15 | "framework": "@storybook/react", 16 | "core": { 17 | "builder": "@storybook/builder-webpack5" 18 | }, 19 | "staticDirs": ["./public"], 20 | webpackFinal: async (config) => { 21 | config.module.rules.push({ 22 | test: /\,css&/, 23 | use: [ 24 | { 25 | loader: "postcss-loader", 26 | options: { 27 | ident: "postcss", 28 | plugins: [ 29 | require("tailwindcss"), 30 | require("autoprefixer"), 31 | ], 32 | }, 33 | }, 34 | ], 35 | include: path.resolve(__dirname, "../"), 36 | }); 37 | 38 | return config; 39 | }, 40 | }; 41 | -------------------------------------------------------------------------------- /.storybook/manager.js: -------------------------------------------------------------------------------- 1 | import { addons } from "@storybook/addons"; 2 | import Theme from "./Theme"; 3 | 4 | addons.setConfig({ 5 | theme: Theme, 6 | }); 7 | -------------------------------------------------------------------------------- /.storybook/package.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.storybook/preview-head.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.storybook/preview.js: -------------------------------------------------------------------------------- 1 | import '../src/fonts.css'; 2 | import '../src/main.css'; 3 | import './storybook.css'; 4 | import Theme from "./Theme"; 5 | 6 | const palettes = { 7 | 'Latte': 'latte', 8 | 'Frappe': 'frappe', 9 | 'Macchiato': 'macchiato', 10 | 'Mocha': 'mocha', 11 | }; 12 | 13 | export const globalTypes = { 14 | theme: { 15 | name: 'Flavour', 16 | description: 'Controls catppuccin flavour', 17 | defaultValue: 'Macchiato', 18 | toolbar: { 19 | icon: 'paintbrush', 20 | // Array of plain string values or MenuItem shape (see below) 21 | items: Object.keys(palettes), 22 | // Property that specifies if the name of the item will be displayed 23 | showName: true, 24 | // Change title based on selected value 25 | dynamicTitle: true, 26 | }, 27 | }, 28 | }; 29 | 30 | const getTheme = (themeName) => { 31 | return palettes[themeName]; 32 | }; 33 | 34 | const withThemeProvider = (Story, context) => { 35 | const theme = getTheme(context.globals.theme); 36 | 37 | // Clear all class names on preview body 38 | Object.values(palettes).forEach((theme) => { 39 | document.body.classList.remove(theme); 40 | }); 41 | 42 | // Sets current theme 43 | document.body.classList.add(theme); 44 | 45 | return ( 46 | 47 | ); 48 | }; 49 | 50 | export const parameters = { 51 | actions: { argTypesRegex: "^on[A-Z].*" }, 52 | controls: { 53 | matchers: { 54 | color: /(background|color)$/i, 55 | date: /Date$/, 56 | }, 57 | }, 58 | docs: { 59 | theme: Theme, 60 | } 61 | }; 62 | 63 | export const decorators = [withThemeProvider]; 64 | -------------------------------------------------------------------------------- /.storybook/public/catppuccin-ui.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /.storybook/storybook.css: -------------------------------------------------------------------------------- 1 | .docs-story { 2 | @apply bg-base text-text; 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Andreas Ekström 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Logo
3 | 4 | Catppuccin UI for React 5 | 6 |

7 | 8 |

9 | 10 | 11 | 12 |

13 | 14 | ## Usage 15 | 16 | _TODO_ 17 | 18 | ### With TailwindCSS 19 | To get started you need to extend (or add) the @catppuccin/ui Tailwind configuration. 20 | 21 | Step 1: Import configuration 22 | ``` 23 | // tailwind.config.js 24 | const catppuccin = require('@catppuccin/ui/tailwind'); 25 | ``` 26 | 27 | Step 2: Extend your existing configuration 28 | 29 | ``` 30 | // tailwind.config.js 31 | /** @type {import('tailwindcss').Config} */ 32 | module.exports = { 33 | content: [ 34 | ...catppuccin.content, 35 | ], 36 | theme: { 37 | ...catppuccin.theme, 38 | }, 39 | plugins: [ 40 | ...catppuccin.plugins, 41 | ], 42 | }; 43 | ``` 44 | 45 | This will add the @catppuccin/tailwindcss plugin + a few other default settings. 46 | 47 | ### Standalone 48 | _Not supported yet (but the css file is located at: `@catppuccin/ui/dist/catppuccin-ui.css`) if u wanna give it a go._ 49 | 50 | 51 | ## 💝 Thanks to 52 | 53 | - [didair](https://github.com/didair) 54 | 55 |   56 | 57 |

58 | 59 |

60 | 61 |

62 | Copyright © 2021-present Catppuccin Org 63 |

64 | 65 |

66 | 67 |

68 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "include": [ 3 | "src" 4 | ], 5 | "compilerOptions": { 6 | "target": "ES6", 7 | "allowSyntheticDefaultImports": true, 8 | "removeComments": true, 9 | "baseUrl": "src", 10 | "module": "ESNext", 11 | "jsx": "react", 12 | "esModuleInterop": true, 13 | "outDir": "dist" 14 | } 15 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@catppuccin/ui", 3 | "version": "0.1.25", 4 | "private": false, 5 | "description": "Soothing pastel React components! A React.JS UI kit based on Catppuccin.", 6 | "keywords": [ 7 | "catppuccin", 8 | "ui-kit", 9 | "ui", 10 | "component library" 11 | ], 12 | "repository": "catppuccin/ui", 13 | "homepage": "https://github.com/catppuccin/ui", 14 | "license": "MIT", 15 | "author": "Catppuccin Org ", 16 | "contributors": [ 17 | "Andreas Ekström " 18 | ], 19 | "source": "src/index.js", 20 | "main": "./dist/catppuccin-ui.js", 21 | "jsnext:main": "./dist/catppuccin-ui.modern.js", 22 | "module": "./dist/catppuccin-ui.module.js", 23 | "syntax": { 24 | "esmodules": "./dist/catppuccin-ui.modern.js" 25 | }, 26 | "exports": { 27 | ".": { 28 | "browser": "./dist/catppuccin-ui.module.js", 29 | "import": "./dist/catppuccin-ui.module.js", 30 | "require": "./dist/catppuccin-ui.js" 31 | }, 32 | "./tailwind": "./dist/tailwind.config.js" 33 | }, 34 | "files": [ 35 | "dist", 36 | "dist/*.css" 37 | ], 38 | "scripts": { 39 | "build": "microbundle --no-compress -f cjs,esm,modern --jsx React.createElement --jsxFragment React.Fragment --jsxImportSource react", 40 | "build-storybook": "build-storybook -o docs-build", 41 | "storybook": "start-storybook", 42 | "start": "start-storybook -p 6006", 43 | "watch": "microbundle watch --jsx React.createElement", 44 | "prepare-config": "cp ./tailwind.config.js ./dist/tailwind.config.js", 45 | "deploy": "npm run build && npm publish", 46 | "deploy-next": "npm run build && npm publish --tag next", 47 | "deploy-storybook": "gh-pages -d storybook-static" 48 | }, 49 | "eslintConfig": { 50 | "extends": [ 51 | "react-app", 52 | "react-app/jest" 53 | ], 54 | "overrides": [ 55 | { 56 | "files": [ 57 | "**/*.stories.*" 58 | ], 59 | "rules": { 60 | "eqeqeq": "off", 61 | "import/no-anonymous-default-export": "off" 62 | } 63 | } 64 | ] 65 | }, 66 | "browserslist": { 67 | "production": [ 68 | ">0.2%", 69 | "not dead", 70 | "not op_mini all" 71 | ], 72 | "development": [ 73 | "last 1 chrome version", 74 | "last 1 firefox version", 75 | "last 1 safari version" 76 | ] 77 | }, 78 | "peerDependencies": { 79 | "react": "^17.0.2 || ^18.0.0", 80 | "react-dom": "^17.0.2 || ^18.0.0" 81 | }, 82 | "dependencies": { 83 | "@catppuccin/tailwindcss": "^0.1.1", 84 | "@storybook/addons": "^6.5.12", 85 | "@storybook/theming": "^6.5.12", 86 | "classnames": "^2.3.1", 87 | "prop-types": "^15.8.1" 88 | }, 89 | "devDependencies": { 90 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", 91 | "@babel/plugin-proposal-optional-chaining": "^7.18.6", 92 | "@storybook/addon-a11y": "^6.5.9", 93 | "@storybook/addon-actions": "^6.5.9", 94 | "@storybook/addon-essentials": "^6.5.9", 95 | "@storybook/addon-interactions": "^6.5.9", 96 | "@storybook/addon-links": "^6.5.9", 97 | "@storybook/builder-webpack5": "^6.5.9", 98 | "@storybook/manager-webpack5": "^6.5.9", 99 | "@storybook/node-logger": "^6.5.9", 100 | "@storybook/preset-create-react-app": "^4.1.2", 101 | "@storybook/react": "^6.5.9", 102 | "@storybook/testing-library": "^0.0.13", 103 | "@testing-library/jest-dom": "^5.16.4", 104 | "@testing-library/react": "^13.3.0", 105 | "@testing-library/user-event": "^13.5.0", 106 | "autoprefixer": "^10.4.7", 107 | "babel-plugin-named-exports-order": "^0.0.2", 108 | "gh-pages": "^4.0.0", 109 | "microbundle": "^0.15.0", 110 | "postcss": "^8.4.14", 111 | "postcss-loader": "^7.0.0", 112 | "react": "^18.2.0", 113 | "react-dom": "^18.2.0", 114 | "tailwindcss": "^3.1.4", 115 | "webpack": "^5.73.0" 116 | }, 117 | "overrides": { 118 | "react": "^18.2.0", 119 | "react-dom": "^18.2.0" 120 | } 121 | } -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | require("tailwindcss"), 4 | require("autoprefixer"), 5 | ], 6 | }; 7 | -------------------------------------------------------------------------------- /src/components/Anchor/Anchor.stories.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { Anchor } from '.'; 4 | 5 | export default { 6 | title: 'Components/Anchor', 7 | component: Anchor, 8 | }; 9 | 10 | const Template = (args) => e.preventDefault()} 12 | {...args} 13 | />; 14 | 15 | export const Preview = Template.bind({}); 16 | Preview.args = { 17 | children: 'Link content', 18 | underline: 'hover', 19 | href: '#yes' 20 | }; 21 | -------------------------------------------------------------------------------- /src/components/Anchor/index.js: -------------------------------------------------------------------------------- 1 | import { createElement } from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import cx from 'classnames'; 4 | 5 | export const Anchor = ({ as, underline, ...props }) => { 6 | 7 | let element = 'a'; 8 | const anchorProps = { 9 | ...props, 10 | className: cx( 11 | 'text-rosewater', 12 | { 13 | 'decoration-lavender': underline != 'never', 14 | 'decoration-2': underline != 'never', 15 | 'hover:underline': underline == 'hover', 16 | 'underline': underline == 'always', 17 | } 18 | ), 19 | }; 20 | 21 | if (as != null) { 22 | element = as; 23 | } 24 | 25 | return createElement(element, anchorProps, props.children); 26 | 27 | }; 28 | 29 | Anchor.propTypes = { 30 | /** 31 | * Configure element to be used for rendering anchor tag 32 | */ 33 | as: PropTypes.oneOfType([ 34 | PropTypes.element, 35 | PropTypes.oneOf(['a']), 36 | ]), 37 | /** 38 | * Configure when underline should be shown 39 | */ 40 | underline: PropTypes.oneOf([ 41 | 'never', 42 | 'hover', 43 | 'always', 44 | ]), 45 | }; 46 | 47 | Anchor.defaultProps = { 48 | underline: 'hover', 49 | as: 'a', 50 | }; -------------------------------------------------------------------------------- /src/components/Avatar/Avatar.stories.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { Avatar } from '.'; 4 | 5 | export default { 6 | title: 'Components/Avatar', 7 | component: Avatar, 8 | }; 9 | 10 | const Template = (args) => ; 11 | 12 | export const Name = Template.bind({}); 13 | Name.args = { 14 | border: 'visible', 15 | background: 'mantle', 16 | name: 'Andreas Ekström', 17 | size: 'medium', 18 | }; 19 | 20 | export const Image = Template.bind({}); 21 | Image.args = { 22 | border: 'visible', 23 | src: 'https://aekstrom.me/assets/face.jpg', 24 | size: 'medium', 25 | }; 26 | -------------------------------------------------------------------------------- /src/components/Avatar/index.js: -------------------------------------------------------------------------------- 1 | import PropTypes from 'prop-types'; 2 | import cx from 'classnames'; 3 | 4 | export const AvatarBorderVariants = { 5 | none: 'border-0', 6 | visible: 'border-2 border-lavender', 7 | }; 8 | 9 | export const AvatarBackgroundVariants = { 10 | crust: 'bg-crust', 11 | mantle: 'bg-mantle', 12 | }; 13 | 14 | export const AvatarSizeVariations = { 15 | small: 'h-9 w-9 text-md', 16 | medium: 'h-12 w-12 text-xl', 17 | large: 'h-16 w-16 text-2xl', 18 | }; 19 | 20 | export const Avatar = ({ src, name, ...props }) => { 21 | 22 | let initial = null; 23 | let last = null; 24 | 25 | if (name != null) { 26 | const split = name?.split(' '); 27 | initial = split[0]?.slice(0, 1); 28 | 29 | if (split.length > 1) 30 | last = split[split.length - 1]?.slice(0, 1); 31 | } 32 | 33 | return ( 34 | 46 | {src != null ? 47 | 58 | : null} 59 | 60 | {src == null ? 61 | 62 | {initial?.toUpperCase()} 63 | {last?.toUpperCase()} 64 | 65 | : null} 66 | 67 | ); 68 | 69 | }; 70 | 71 | Avatar.defaultProps = { 72 | border: 'visible', 73 | background: 'mantle', 74 | size: 'medium', 75 | }; 76 | 77 | Avatar.propTypes = { 78 | background: PropTypes.oneOf(Object.keys(AvatarBackgroundVariants)), 79 | border: PropTypes.oneOf(Object.keys(AvatarBorderVariants)), 80 | size: PropTypes.oneOf(Object.keys(AvatarSizeVariations)), 81 | }; -------------------------------------------------------------------------------- /src/components/Button/Button.stories.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { Button } from '.'; 4 | 5 | // More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export 6 | export default { 7 | title: 'Components/Button', 8 | component: Button, 9 | }; 10 | 11 | // More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args 12 | const Template = (args) => 42 | 43 |
44 | Already have an account? Sign in 45 |
46 | 47 | 48 | ); 49 | 50 | }; 51 | 52 | const SigninForm = () => { 53 | 54 | return ( 55 |
56 | 57 | Welcome back! 58 | 59 | 60 |
61 | 62 | 63 |
64 | 65 |
66 |
67 | 68 |
69 | 72 | 73 |
74 | Don't have an account? Sign up 75 |
76 |
77 |
78 | ); 79 | 80 | }; 81 | 82 | export const Sign_up = SignupForm.bind({}); 83 | export const Sign_in = SigninForm.bind({}); -------------------------------------------------------------------------------- /src/stories/Introduction.stories.mdx: -------------------------------------------------------------------------------- 1 | import { Meta } from '@storybook/addon-docs'; 2 | import Code from './assets/code-brackets.svg'; 3 | import Colors from './assets/colors.svg'; 4 | import Comments from './assets/comments.svg'; 5 | import Direction from './assets/direction.svg'; 6 | import Flow from './assets/flow.svg'; 7 | import Plugin from './assets/plugin.svg'; 8 | import Repo from './assets/repo.svg'; 9 | import StackAlt from './assets/stackalt.svg'; 10 | 11 | 12 | 13 | 116 | 117 | # Welcome to Storybook 118 | 119 | Storybook helps you build UI components in isolation from your app's business logic, data, and context. 120 | That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA. 121 | 122 | Browse example stories now by navigating to them in the sidebar. 123 | View their code in the `stories` directory to learn how they work. 124 | We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages. 125 | 126 |
Configure
127 | 128 | 174 | 175 |
Learn
176 | 177 | 207 | 208 |
209 | TipEdit the Markdown in{' '} 210 | stories/Introduction.stories.mdx 211 |
212 | -------------------------------------------------------------------------------- /src/stories/assets/code-brackets.svg: -------------------------------------------------------------------------------- 1 | illustration/code-brackets -------------------------------------------------------------------------------- /src/stories/assets/colors.svg: -------------------------------------------------------------------------------- 1 | illustration/colors -------------------------------------------------------------------------------- /src/stories/assets/comments.svg: -------------------------------------------------------------------------------- 1 | illustration/comments -------------------------------------------------------------------------------- /src/stories/assets/direction.svg: -------------------------------------------------------------------------------- 1 | illustration/direction -------------------------------------------------------------------------------- /src/stories/assets/flow.svg: -------------------------------------------------------------------------------- 1 | illustration/flow -------------------------------------------------------------------------------- /src/stories/assets/plugin.svg: -------------------------------------------------------------------------------- 1 | illustration/plugin -------------------------------------------------------------------------------- /src/stories/assets/repo.svg: -------------------------------------------------------------------------------- 1 | illustration/repo -------------------------------------------------------------------------------- /src/stories/assets/stackalt.svg: -------------------------------------------------------------------------------- 1 | illustration/stackalt -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: [ 4 | './src/**/*.{html,js,jsx}', 5 | './node_modules/@catppuccin/ui/**/*.{html,js,jsx}', 6 | ], 7 | theme: { 8 | extend: { 9 | fontFamily: { 10 | 'inter': ["Inter", "ui-sans-serif"], 11 | }, 12 | }, 13 | }, 14 | plugins: [ 15 | require('@catppuccin/tailwindcss')({ 16 | prefix: false, 17 | defaultFlavour: "macchiato", 18 | }), 19 | ], 20 | }; 21 | --------------------------------------------------------------------------------