- Replace incorrect semantic token names with correct ones: • $semantic-border-width-thin → $semantic-border-width-1 • $semantic-color-border-default → $semantic-color-border-primary • $semantic-spacing-content-* → $semantic-spacing-component-* • $semantic-typography-body-* → $semantic-typography-font-size-* • $semantic-typography-caption-* → $semantic-typography-font-size-* • $semantic-motion-easing-standard → $semantic-easing-standard • $semantic-color-surface-tertiary → $semantic-color-surface-secondary • Various hover color tokens → base color tokens - Fix typography map usage errors: • Replace heading map tokens with individual size tokens • $semantic-typography-heading-h* → $semantic-typography-heading-h*-size - Update affected components: • tooltip, divider, progress-circle, range-slider components • Related demo components and SCSS files 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
114 lines
2.5 KiB
SCSS
114 lines
2.5 KiB
SCSS
@use "../../../../../shared-ui/src/styles/semantic/index" as *;
|
|
|
|
.demo-container {
|
|
padding: $semantic-spacing-layout-md;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.demo-section {
|
|
margin-bottom: $semantic-spacing-layout-lg;
|
|
|
|
h3 {
|
|
margin-bottom: $semantic-spacing-content-paragraph;
|
|
color: $semantic-color-text-primary;
|
|
font-size: $semantic-typography-font-size-lg;
|
|
}
|
|
}
|
|
|
|
.demo-row {
|
|
display: flex;
|
|
gap: $semantic-spacing-component-lg;
|
|
align-items: center;
|
|
margin-bottom: $semantic-spacing-component-sm;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.positions-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: $semantic-spacing-component-xl;
|
|
max-width: 400px;
|
|
margin: $semantic-spacing-layout-md 0;
|
|
}
|
|
|
|
.demo-button {
|
|
padding: $semantic-spacing-component-sm $semantic-spacing-component-md;
|
|
background: $semantic-color-primary;
|
|
color: $semantic-color-on-primary;
|
|
border: none;
|
|
border-radius: $semantic-border-radius-md;
|
|
cursor: pointer;
|
|
font-size: $semantic-typography-font-size-md;
|
|
transition: background-color $semantic-motion-duration-fast $semantic-easing-standard;
|
|
|
|
&:hover {
|
|
background: $semantic-color-primary-hover;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 2px solid $semantic-color-focus;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.demo-text {
|
|
color: $semantic-color-text-primary;
|
|
font-size: $semantic-typography-font-size-md;
|
|
text-decoration: underline;
|
|
cursor: help;
|
|
|
|
&:hover {
|
|
color: $semantic-color-primary;
|
|
}
|
|
}
|
|
|
|
.demo-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: $semantic-color-surface-secondary;
|
|
border: 2px solid $semantic-color-border-primary;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: $semantic-typography-font-size-sm;
|
|
font-weight: bold;
|
|
cursor: help;
|
|
color: $semantic-color-text-secondary;
|
|
|
|
&:hover {
|
|
background: $semantic-color-surface-secondary;
|
|
color: $semantic-color-text-primary;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
color: $semantic-color-text-secondary;
|
|
font-size: $semantic-typography-font-size-md;
|
|
}
|
|
|
|
// Responsive adjustments
|
|
@media (max-width: $semantic-breakpoint-md - 1) {
|
|
.positions-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: $semantic-spacing-component-md;
|
|
}
|
|
|
|
.demo-row {
|
|
gap: $semantic-spacing-component-md;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $semantic-breakpoint-sm - 1) {
|
|
.demo-container {
|
|
padding: $semantic-spacing-layout-sm;
|
|
}
|
|
|
|
.demo-row {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: $semantic-spacing-component-sm;
|
|
}
|
|
} |