Files
supabase/packages/ui
Drake Costa ad4506d89b Update @deprecated suggestions for ui package components (#36944)
update deprecation hints

This updates the deprecation notices for components in the `ui` package to follow this format:

```
/** @deprecated Use `import { <Component_Name> } from "ui"` instead */
```

The intent here is to be more explicit about what import a developer should be using instead to replace the deprecated component. Most of these notices were using a confusing relative path segment, which made it unclear as to which library the suggested replacement was coming from.
2025-08-05 11:31:32 +02:00
..
2023-06-26 01:08:20 +08:00
2025-06-20 12:46:17 +08:00
2023-03-22 12:27:30 +08:00
2025-04-09 16:13:53 +01:00
2024-12-16 11:50:20 +01:00

Supabase UI Package

Figma-tokens setup

Tokens setup is based partly on blogpost on the Mirahi Digital Garden.

Transforms tokens stored on Figma Tokens using token-transformer and Style Dictionary to css-variables with references, and use them in your TailwindCSS environment with multiple themes.

Build all the styles files (css-variables and tailwind config)

npm run build-styles

This creates a directory called styles with the tokens and also CSS required.

Other examples

You can find other examples here by Jan Six

Adding new themes/sets

Add new sets by extending the scripts in package.json. Currently theme sets derive from exported/[set name] but can come from anywhere.

Adding a new set can be done with the following:

// package.json

//..
"build-transform-light": "npx token-transformer tokens.json styles/tokens/02_themes/light.json global,exported/light,theme global",
// add a new line like this:
"build-transform-new": "npx token-transformer tokens.json styles/tokens/02_themes/new.json global,new,theme global",
//..
// append the new theme/set command to end of the build-transform command
"build-transform": "npm run build-transform-global && npm run build-transform-typography && npm run build-transform-dark  && npm run build-transform-light && npm run build-transform-new",