feat: storybook foundations documentation - Colors, Typography, Spacing e Icons#496
Merged
robsongajunior merged 6 commits intomainfrom Mar 31, 2026
Merged
Conversation
Collaborator
|
Wow, awesome job. Thanks a lot. |
robsongajunior
approved these changes
Mar 31, 2026
Collaborator
|
🎉 This PR is included in version 1.15.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Collaborator
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objetivo
Criar a seção Foundations no Storybook do Design System da Azion, documentando os quatro pilares do sistema de design: cores, tipografia, espaçamento e ícones. O objetivo é dar visibilidade ao token system para designers e desenvolvedores, com previews interativos e navegação entre seções.
O que foi feito
Estrutura de dados (
apps/storybook/src/foundations/data/)colors.js— tokens primitivos, semânticos de background, text e bordertypography.js— escala tipográfica completa com valores por breakpoint (desktop/tablet/mobile)spacing.js— classes semânticas de container, padding e gap com valores responsivosComponentes de layout reutilizáveis (
foundations/components/layout/)PageContainer,PageHeader,SectionHeader,Card,Alert,CodeBlockArchitectureDiagram— diagrama das 3 camadas do token system (Primitive → Semantic → CSS Var)CategoryCard— card de navegação entre stories via Storybook channelTokenPreview— preview visual de um token individualComponentes de conteúdo (
foundations/components/)ColorSwatch,PrimitiveScale,TokenTable,ColorPlayground— visualização e playground de coresTypographyPreview— preview de cada estilo tipográfico com copy do token e highlight do breakpoint ativoSpacingPreview— visualização de padding/gap/max-width com copy do token e highlight do breakpoint ativoIconGrid— grid de ícones com busca, slider de tamanho e copy do código HTMLComposable
useViewport.js— detecta o breakpoint ativo viawindow.innerWidthe reage ao addon de viewport do StorybookStories (
src/stories/foundations/)Colors— Overview, Primitives, Backgrounds, Text Colors, Borders, PlaygroundTypography— Overview com escala completa (headings, body, overline, special)Spacing— Overview com density scale e classes semânticasIcons— Overview com import, usage e galeria completaComo testar
cd apps/storybook && pnpm dev<i class="..."/>