mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* d4 init * fix navbar transparency * fix close color * update blog post og and thumb * blog: initial blog post for day 4 (#28586) * blog: initial blog post for day 4 * blog: update categories * blog: spelling * blog: update header * update blog * update blog * update blog * review suggestions * blog post og and thumb * blog: more content on architecture changes * blog: spell check * docs: add edge function log drains guide * docs: update admonition * reorder sections * blog: add link to edge function guide --------- Co-authored-by: Inian <inian1234@gmail.com> Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Update apps/www/_blog/2024-08-15-log-drains.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * add video --------- Co-authored-by: Ziinc <Ziinc@users.noreply.github.com> Co-authored-by: Inian <inian1234@gmail.com> Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com>
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",