JavaScript API
API
Tailwind CSS theme values as static tokens for Plumeria.
@plumeria/wind provides Tailwind CSS design values as static tokens. The values are compiled into your styles at build time, so the package adds nothing to your bundle.
npm yarn pnpm
yarn add -D @plumeria/wind
import * as css from ' @plumeria/core ' ;
import { blue , radius , slate , spacing , text } from ' @plumeria/wind ' ;
const styles = css . create ({
button : {
paddingInline : spacing [ 4 ],
fontSize : text . sm ,
color : slate [ 50 ],
backgroundColor : blue [ 600 ],
borderRadius : radius . md ,
},
});
Animations pair a keyframes export with its timing.
import * as css from ' @plumeria/core ' ;
import { animate , spin } from ' @plumeria/wind ' ;
const styles = css . create ({
spinner : {
animation : `${ spin } ${ animate . spin }` ,
},
});
50 100 200 300 400 500 600 700 800 900 950 red orange amber yellow lime green emerald teal cyan sky blue indigo violet purple fuchsia pink rose slate gray zinc neutral stone mauve olive mist taupe
font.sans-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'font.serifui-serif, Georgia, Cambria, 'Times New Roman', Times, seriffont.monoui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace
text.xs0.75remtext.sm0.875remtext.base1remtext.lg1.125remtext.xl1.25remtext['2xl']1.5remtext['3xl']1.875remtext['4xl']2.25remtext['5xl']3remtext['6xl']3.75remtext['7xl']4.5remtext['8xl']6remtext['9xl']8rem
textLineHeight.xscalc(1 / 0.75)textLineHeight.smcalc(1.25 / 0.875)textLineHeight.basecalc(1.5 / 1)textLineHeight.lgcalc(1.75 / 1.125)textLineHeight.xlcalc(1.75 / 1.25)textLineHeight['2xl']calc(2 / 1.5)textLineHeight['3xl']calc(2.25 / 1.875)textLineHeight['4xl']calc(2.5 / 2.25)textLineHeight['5xl']1textLineHeight['6xl']1textLineHeight['7xl']1textLineHeight['8xl']1textLineHeight['9xl']1
fontWeight.thin100fontWeight.extralight200fontWeight.light300fontWeight.normal400fontWeight.medium500fontWeight.semibold600fontWeight.bold700fontWeight.extrabold800fontWeight.black900
tracking.tighter-0.05emtracking.tight-0.025emtracking.normal0emtracking.wide0.025emtracking.wider0.05emtracking.widest0.1em
leading.tight1.25leading.snug1.375leading.normal1.5leading.relaxed1.625leading.loose2
spacing[0]0spacing[1]0.25remspacing[2]0.5remspacing[3]0.75remspacing[4]1remspacing[5]1.25remspacing[6]1.5remspacing[7]1.75remspacing[8]2remspacing[9]2.25remspacing[10]2.5remspacing[11]2.75remspacing[12]3remspacing[14]3.5remspacing[16]4remspacing[20]5remspacing[24]6remspacing[28]7remspacing[32]8remspacing[36]9remspacing[40]10remspacing[44]11remspacing[48]12remspacing[52]13remspacing[56]14remspacing[60]15remspacing[64]16remspacing[72]18remspacing[80]20remspacing[96]24remspacing.px1pxspacing['0.5']0.125remspacing['1.5']0.375remspacing['2.5']0.625remspacing['3.5']0.875rem
radius.xs0.125remradius.sm0.25remradius.md0.375remradius.lg0.5remradius.xl0.75remradius['2xl']1remradius['3xl']1.5remradius['4xl']2rem
shadow['2xs']0 1px rgb(0 0 0 / 0.05)shadow.xs0 1px 2px 0 rgb(0 0 0 / 0.05)shadow.sm0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)shadow.md0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)shadow.lg0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)shadow.xl0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)shadow['2xl']0 25px 50px -12px rgb(0 0 0 / 0.25)
insetShadow['2xs']inset 0 1px rgb(0 0 0 / 0.05)insetShadow.xsinset 0 1px 1px rgb(0 0 0 / 0.05)insetShadow.sminset 0 2px 4px rgb(0 0 0 / 0.05)
dropShadow.xs0 1px 1px rgb(0 0 0 / 0.05)dropShadow.sm0 1px 2px rgb(0 0 0 / 0.15)dropShadow.md0 3px 3px rgb(0 0 0 / 0.12)dropShadow.lg0 4px 4px rgb(0 0 0 / 0.15)dropShadow.xl0 9px 7px rgb(0 0 0 / 0.1)dropShadow['2xl']0 25px 25px rgb(0 0 0 / 0.15)
textShadow['2xs']0px 1px 0px rgb(0 0 0 / 0.15)textShadow.xs0px 1px 1px rgb(0 0 0 / 0.2)textShadow.sm0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)textShadow.md0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)textShadow.lg0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)
blur.xs4pxblur.sm8pxblur.md12pxblur.lg16pxblur.xl24pxblur['2xl']40pxblur['3xl']64px
breakpoint.sm40rembreakpoint.md48rembreakpoint.lg64rembreakpoint.xl80rembreakpoint['2xl']96rem
container['3xs']16remcontainer['2xs']18remcontainer.xs20remcontainer.sm24remcontainer.md28remcontainer.lg32remcontainer.xl36remcontainer['2xl']42remcontainer['3xl']48remcontainer['4xl']56remcontainer['5xl']64remcontainer['6xl']72remcontainer['7xl']80rem
perspective.dramatic100pxperspective.near300pxperspective.normal500pxperspective.midrange800pxperspective.distant1200px
ease.incubic-bezier(0.4, 0, 1, 1)ease.outcubic-bezier(0, 0, 0.2, 1)ease['in-out']cubic-bezier(0.4, 0, 0.2, 1)
transition.duration150mstransition.timingFunctioncubic-bezier(0.4, 0, 0.2, 1)
animate.spin1s linear infiniteanimate.ping1s cubic-bezier(0, 0, 0.2, 1) infiniteanimate.pulse2s cubic-bezier(0.4, 0, 0.6, 1) infiniteanimate.bounce1s infinite
Keyframes: spin, ping, pulse, bounce.
color.black#000color.white#fff
The theme values are taken from Tailwind CSS v4.3.3 and distributed under its MIT license.
Edit on GitHub