Skip to content

feat(component): design system foundation#33

Merged
mravcak merged 1 commit into
mainfrom
design-system-foundation
Jun 4, 2026
Merged

feat(component): design system foundation#33
mravcak merged 1 commit into
mainfrom
design-system-foundation

Conversation

@mravcak

@mravcak mravcak commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Style

    • Updated styling classes across components for consistent color and typography conventions.
  • Chores

    • Established comprehensive design system foundation with centralized color and typography definitions.
    • Enhanced design system documentation with interactive Storybook stories showcasing colors and typography options.

@coderabbitai

coderabbitai Bot commented Jun 3, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@mravcak, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 54 minutes and 35 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 30f61bfc-708f-4180-bc79-d3cb6072d048

📥 Commits

Reviewing files that changed from the base of the PR and between efa5913 and 8fdeff4.

📒 Files selected for processing (11)
  • apps/archeo/src/components/ActivityLevel.vue
  • apps/archeo/src/components/ActivityList/ActivityTable.vue
  • apps/archeo/src/components/ArcheoMap/ArcheoMapPopover.vue
  • apps/etno/src/views/DetailView.vue
  • packages/components/.storybook/preview.ts
  • packages/components/src/assets/colors.css
  • packages/components/src/assets/main.css
  • packages/components/src/assets/typography.css
  • packages/components/src/components/molecules/ModalWindow/ModalWindow.vue
  • packages/components/src/stories/Colors.stories.ts
  • packages/components/src/stories/Typography.stories.ts
📝 Walkthrough

Walkthrough

This PR refactors the design system by extracting color and typography themes into modular CSS files, updates Tailwind configuration to import these modules, adds Storybook documentation stories for colors and typography, and updates app components to use the new standardized Tailwind class names.

Changes

Design System Refactor and Documentation

Layer / File(s) Summary
Color and Typography Theme Definitions
packages/components/src/assets/colors.css, packages/components/src/assets/typography.css
Introduces @theme CSS blocks defining primary, neutral, and status color variables with hex values; imports Inter (weights 400–700) and Geist Mono (400) fonts; defines semantic typography tokens, type scale, and responsive typography adjustments at theme(--breakpoint-md).
Tailwind Configuration Refactoring
packages/components/src/assets/main.css
Refactored to import color and typography theme modules from separate files, adds @source "../stories" directive for Storybook, and removes previously inline font imports and @theme definitions.
Storybook Configuration and Color Documentation
packages/components/.storybook/preview.ts, packages/components/src/stories/Colors.stories.ts
Adds story ordering configuration (['Design System', 'Atoms', 'Molecules']) to preview parameters; creates Colors story with COLOR_GROUPS data structure displaying primary, neutral, and status color palettes with names, Tailwind class names, and hex values.
Typography Documentation Story
packages/components/src/stories/Typography.stories.ts
Creates Typography story with TYPOGRAPHY_GROUPS and SAMPLE_TEXT constants; renders interactive story displaying all typography classes with live sample text organized by category.
Component Styling Class Updates
apps/archeo/src/components/ActivityLevel.vue, apps/archeo/src/components/ActivityList/ActivityTable.vue, apps/archeo/src/components/ArcheoMap/ArcheoMapPopover.vue, apps/etno/src/views/DetailView.vue, packages/components/src/components/molecules/ModalWindow/ModalWindow.vue
Updates Tailwind class names: ActivityLevel uses bg-status-*-500 for status colors; ActivityTable and DetailView use text-label-sm for label typography; ArcheoMapPopover and ModalWindow use hover:bg-neutral-100 for neutral hover backgrounds.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • igor-kamil
  • rastislav-chynoransky
  • rch3ad

Poem

🐰 The theme files hop and separate clear,
Colors dance and typography cheer,
Storybook glows with shades so bright,
New naming schemes, a modular delight!
From monolith to modules we refine,
A system that's organized by design.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(component): design system foundation' clearly summarizes the main change—establishing the design system foundation with color and typography assets, stories, and component updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch design-system-foundation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/archeo/src/components/ActivityLevel.vue`:
- Around line 7-9: In ActivityLevel.vue update the class mapping for level === 2
to use the correct design-system token name: replace the incorrect key
'bg-status-warning-500' with the proper token 'bg-warning-success-500' in the
object that maps background classes based on the level variable so level 2
receives the intended background color.

In `@packages/components/src/assets/colors.css`:
- Around line 32-34: The CSS variables for warning were misnamed as
--color-warning-success-100/500/700 which breaks the --color-status-<name>-*
convention; rename these variables to --color-status-warning-100,
--color-status-warning-500, and --color-status-warning-700 in
packages/components/src/assets/colors.css and update any usages (notably in
packages/components/src/stories/Colors.stories.ts) from bg-warning-success-* to
bg-status-warning-* so components referencing bg-status-warning-500 resolve
correctly.

In `@packages/components/src/assets/main.css`:
- Around line 1-6: Move the local stylesheet imports so they appear before the
Tailwind `@source` directives: relocate `@import` "./colors.css" and `@import`
"./typography.css" above `@source` "../" and `@source` "../stories". This keeps
Tailwind's `@import` "`@import` "tailwindcss";" at the top, preserves Tailwind
behavior, and resolves the Stylelint "invalid position" complaint by ensuring
the local `@import` rules come before the `@source` directives.

In `@packages/components/src/assets/typography.css`:
- Around line 130-138: There are duplicate and mistargeted CSS custom properties
in the data tokens: remove the duplicated --text-data--line-height (one of the
two occurrences) and change the mistargeted --text-data--line-height under the
label block to --text-data-label--line-height so the --text-data-label token
actually receives its line-height; verify the remaining properties (--text-data,
--text-data--letter-spacing, --text-data-label,
--text-data-label--letter-spacing, --text-data-label--font-weight) are correctly
named and not duplicated.

In `@packages/components/src/stories/Colors.stories.ts`:
- Around line 46-48: Update the inconsistent className values for the warning
color entries in Colors.stories.ts: replace the three occurrences of
'bg-warning-success-100', 'bg-warning-success-500', and 'bg-warning-success-700'
(associated with the items named 'Warning 100', 'Warning 500', 'Warning 700')
with the correct status naming pattern 'bg-status-warning-100',
'bg-status-warning-500', and 'bg-status-warning-700' so they match the other
status color prefixes and render correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b516c3d3-42f9-43eb-81eb-c6ace2f20d71

📥 Commits

Reviewing files that changed from the base of the PR and between 2afc109 and efa5913.

📒 Files selected for processing (11)
  • apps/archeo/src/components/ActivityLevel.vue
  • apps/archeo/src/components/ActivityList/ActivityTable.vue
  • apps/archeo/src/components/ArcheoMap/ArcheoMapPopover.vue
  • apps/etno/src/views/DetailView.vue
  • packages/components/.storybook/preview.ts
  • packages/components/src/assets/colors.css
  • packages/components/src/assets/main.css
  • packages/components/src/assets/typography.css
  • packages/components/src/components/molecules/ModalWindow/ModalWindow.vue
  • packages/components/src/stories/Colors.stories.ts
  • packages/components/src/stories/Typography.stories.ts

Comment thread apps/archeo/src/components/ActivityLevel.vue
Comment thread packages/components/src/assets/colors.css Outdated
Comment thread packages/components/src/assets/main.css
Comment thread packages/components/src/assets/typography.css
Comment thread packages/components/src/stories/Colors.stories.ts Outdated
@mravcak mravcak force-pushed the design-system-foundation branch from efa5913 to 7916e63 Compare June 3, 2026 09:30
@mravcak mravcak force-pushed the design-system-foundation branch from 7916e63 to 8fdeff4 Compare June 3, 2026 10:41

@rastislav-chynoransky rastislav-chynoransky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@mravcak mravcak merged commit a36d8be into main Jun 4, 2026
2 checks passed
@mravcak mravcak deleted the design-system-foundation branch June 4, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants