Shape and elevation
⋯
CSS names use the nesra namespace. Commas in source names become hyphens.
export function SurfaceExample() { return ( <div className="rounded-nesra-md border-nesra-stroke-1 border-nesra-stroke-border bg-nesra-surface-card-bg-neutral p-nesra-padding-2xl shadow-nesra-xs"> Account details </div> );}Border Radius variables
Section titled “Border Radius variables”| Figma variable | CSS token | Resolved value |
|---|---|---|
radius-none |
--nesra-radius-none |
0px |
radius-xs |
--nesra-radius-xs |
4px |
radius-sm |
--nesra-radius-sm |
8px |
radius-md |
--nesra-radius-md |
10px |
radius-xl |
--nesra-radius-xl |
12px |
radius-2xl |
--nesra-radius-2xl |
16px |
radius-3xl |
--nesra-radius-3xl |
24px |
radius-4xl |
--nesra-radius-4xl |
32px |
radius-5xl |
--nesra-radius-5xl |
40px |
radius-full |
--nesra-radius-full |
999px |
Figma does not define a radius-lg variable.
Stroke variables
Section titled “Stroke variables”These are stroke widths. Stroke colors are under Colors.
| Figma variable | CSS token | Value |
|---|---|---|
stroke-0,5 |
--nesra-stroke-width-0-5 |
0.5px |
stroke-0,75 |
--nesra-stroke-width-0-75 |
0.75px |
stroke-1 |
--nesra-stroke-width-1 |
1px |
stroke-1,5 |
--nesra-stroke-width-1-5 |
1.5px |
stroke-2 |
--nesra-stroke-width-2 |
2px |
stroke-2,5 |
--nesra-stroke-width-2-5 |
2.5px |
stroke-4 |
--nesra-stroke-width-4 |
4px |
Box Shadow effect styles
Section titled “Box Shadow effect styles”Each token is a complete shadow value. Shadow colors come from the Shadow/* and Effects/*
color roles under Colors. Because of that, every shadow follows Light and Dark, and Dark
uses twice the alpha. The utility is shadow-nesra-<name>, for example shadow-nesra-focus-ring-offset.
| Figma effect style | CSS token | CSS value |
|---|---|---|
Box Shadow/shadow-2xs |
--nesra-box-shadow-2xs |
0 1px 0 0 var(--nesra-shadow-xs) |
Box Shadow/shadow-xs |
--nesra-box-shadow-xs |
0 1px 2px 0 var(--nesra-shadow-10) |
Box Shadow/shadow-sm |
--nesra-box-shadow-sm |
0 1px 3px 0 var(--nesra-shadow-10) |
Box Shadow/shadow-md |
--nesra-box-shadow-md |
0 2px 4px -2px var(--nesra-shadow-10), 0 4px 6px -1px var(--nesra-shadow-10) |
Box Shadow/shadow-lg |
--nesra-box-shadow-lg |
0 4px 6px -4px var(--nesra-shadow-02), 0 10px 15px -3px var(--nesra-shadow-lg-01) |
Box Shadow/shadow-xl |
--nesra-box-shadow-xl |
0 8px 40px -6px var(--nesra-shadow-06), 0 20px 25px -5px var(--nesra-shadow-06) |
Box Shadow/shadow-2xl |
--nesra-box-shadow-2xl |
0 25px 50px -12px var(--nesra-shadow-15) |
Box Shadow/shadow-inner |
--nesra-box-shadow-inner |
inset 0 2px 4px 0 var(--nesra-shadow-06) |
Box Shadow/shadow-none |
--nesra-box-shadow-none |
none |
Box Shadow/Focus ring |
--nesra-box-shadow-focus-ring |
0 0 0 3px var(--nesra-effects-focus-ring) |
Box Shadow/Focus ring offset |
--nesra-box-shadow-focus-ring-offset |
0 0 0 2px var(--nesra-foundation-bg-neutral), 0 0 0 4px var(--nesra-effects-focus-ring) |
Box Shadow/Destructive |
--nesra-box-shadow-destructive |
0 0 0 3px var(--nesra-effects-focus-ring-destructive) |
Box Shadow/shadow-xs-skeuomorphic |
--nesra-box-shadow-xs-skeuomorphic |
0 1px 2px 0 var(--nesra-shadow-xs), inset 0 -2px 0 0 var(--nesra-shadow-skeuomorphic-inner), inset 0 0 0 1px var(--nesra-shadow-skeuomorphic-inner-border) |
Use Focus ring offset on filled controls and tabs. It draws a 2px gap in the page color before a
2px ring. Use Focus ring on fields, checkboxes and radios. Use Destructive on fields in an error
state.
Backdrop blur effect styles
Section titled “Backdrop blur effect styles”| Figma effect style | CSS token | Value | Utility |
|---|---|---|---|
Backdrop blur/backdrop-blur-sm |
--nesra-backdrop-blur-sm |
8px |
backdrop-blur-nesra-sm |
Backdrop blur/backdrop-blur-md |
--nesra-backdrop-blur-md |
16px |
backdrop-blur-nesra-md |