Usage

Styling: one compiler, two entry points

tsx
import classes from './screen.css';
import { styles, VStack, Text } from 'kuito';

const sheet = styles({
  card: { padding: 16, backgroundColor: '#17263b', borderRadius: 12 },
});
export function Card() {
  return (
    <VStack class={classes.panel}>
      <Text class={sheet.card}>Hi</Text>
    </VStack>
  );
}

Signatures

ts
<T extends Record<string, StyleRule>>(_rules: T): { [K in keyof T]: string; }

Type parameters

NameConstraintDefault
TRecord<string, StyleRule>—

Parameters

NameTypeRequiredDescription
_rulesTYes—

Returns

{ [K in keyof T]: string; }

Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.