Skip to content

TypeScript Types

This section contains references to the TypeScript types used within the Luaris Framework, these types are used across the components, design system, and other parts of the framework to ensure type safety and consistency.

Each component has it's own types file, while also importing from the global shared types, this section will focus on the globally shared types, each component's types will be documented in the respective component documentation.

Theme

The theme types include definitions for the design tokens used across the framework, such as colours, sizes, border radius, and border widths. These types ensure that the design tokens are used consistently across all components and allow for type checking when using these tokens in component props.

Read more

Units

The units types include definitions for the various units of measurement used in the framework, such as lengths, sizes, and other CSS-related values. These types help ensure that when specifying dimensions or spacing in component props, the values are valid and consistent with the design system.

Read more