0.0.46 • Published 3 years ago
@sayaww/nomi-mono v0.0.46
Installation
pnpm i @sayaww/nomi-mono"Usage
Set up styles and fonts in your root file:
import '@sayaww/nomi-mono/style';
import '@fontsource/inter/400.css'; // optional
import '@fontsource/inter/500.css'; // optional
import '@fontsource/inter/700.css'; // optionalImport components:
import { Button } from '@sayaww/nomi-mono';With storybook
import '../src/style.css';
import '@fontsource/inter/400.css';
import '@fontsource/inter/500.css';
import '@fontsource/inter/700.css';Development
turbo dev
#http://localhost:6006Import themes
- In Tokens Studio in Figma, select
lighttheme - Export from Figma, choose Tools > Export > single file
- Uncheck
all token set - check
include parent key - save as
Light.jsonand put intofigma-outputfolder, then repeat for dark theme - put all files into figma-output folder
- run
turbo build-token - Access theme in
src/themes/tokens.json - Migrate tokens manually to
tailwind.config.cjs- See
/tokens/tokens-transformed-[dark | light].json
- See
Developing UI
Adding a new component
Use shadcn/ui to add components you want.
Or
- Duplicate from "Template" folder in
src/componentswith the component name. - Add the component name to
src/components/index.tsx.
Working on UI + your own project
If you are developing UI and other preoject at the same time, you'll need to let Tailwind knows when to compile your new class names.
tailwind.config
content: [
"./index.html",
"./*.mdx",
"./src/components/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"../perp-onboarding/app/**/*.{js,ts,jsx,tsx,mdx}",
"../otc-maker-ui/app/**/*.{js,ts,jsx,tsx,mdx}",
// add new files to watch here
],package.json
"dev": "tsup src/components/index.tsx --format esm,cjs --dts --watch src --watch ../perp-onboarding/app --watch <your path> & storybook dev -p 6006",Publish
turbo shipPublish storybook to Chromatic
turbo chromaticEmbed Story in website
Get url from the top right corner of a story.
0.0.46
3 years ago
0.0.40
3 years ago
0.0.41
3 years ago
0.0.42
3 years ago
0.0.43
3 years ago
0.0.44
3 years ago
0.0.45
3 years ago
0.0.37
3 years ago
0.0.38
3 years ago
0.0.39
3 years ago
0.0.30
3 years ago
0.0.31
3 years ago
0.0.33
3 years ago
0.0.34
3 years ago
0.0.35
3 years ago
0.0.27
3 years ago
0.0.28
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.16
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.1
3 years ago