Documentation
App styling
Import public CSS and use sprinkles, vars, responsive styles, and vanilla-extract.
Applications should import the public CSS entry points once at the app boundary.
import '@plumile/ui/style.css';
import '@plumile/backoffice-react/style.css';Component-level static styles should use vanilla-extract. Prefer sprinkles and vars from @plumile/ui before introducing one-off values.
import { keyframes, style } from '@vanilla-extract/css';
import { sprinkles, vars } from '@plumile/ui';
const riseIn = keyframes({
'0%': {: 0,: 'translateY(8px)' },
'100%': {: 1,: 'translateY(0)' },
});
export const list = sprinkles({
: 'flex',
: 'column',
: 4,
});
export const item = style([
sprinkles({
: 'grid',
: 6,
: 5,
: 'xl',
: 'px',
: 'solid',
: 'borderSubtle',
: 'surface',
}),
{
: 'minmax(0, 2fr) minmax(0, 1fr) auto',
: vars.boxShadow.sm,
: `${riseIn} 420ms ease`,
'@media': {
'screen and (max-width: 900px)': {
: '1fr',
},
},
},
]);Keep business logic out of UI styles. Styles should encode layout, state, and visual semantics, not application rules.
For the full application shell that imports these styles once, see Full app shell.