Files
supabase/packages/ui
34d152ce78 Eagle 3 (#22834)
* update d3 data

* feat: add blog post

* fix: update title & add admonition

* image update

* update SVGs

* fix: update title and codeblocks

* add build item

* remove comment

* fix: add video iframe

* better blog thumb quality

* correct yt id

* Update apps/www/_blog/2024-04-17-anonymous-sign-ins.mdx

* Update apps/www/_blog/2024-04-17-anonymous-sign-ins.mdx

* fix: format codeblocks

---------

Co-authored-by: Francesco Sansalvadore <francescosansalvadore@MacBook-Pro-2.local>
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-04-17 21:13:24 +07:00
..
2024-03-08 06:27:16 +00:00
2024-04-17 21:13:24 +07:00
2023-05-22 01:25:17 +08:00
2023-06-26 01:08:20 +08:00
2023-06-25 13:32:01 +08:00
2024-04-04 13:09:21 +00:00
2022-09-19 14:00:05 +02:00
2023-03-22 12:27:30 +08:00
2023-06-26 00:28:16 +08:00
2024-04-04 13:09:21 +00: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",