소스 정보
- 저장소
- SAP/fundamental-styles
- 최근 소스 활동
- 2026년 6월 4일 14:34
- 감지된 SKILL.md 언어
- 영어
- 스타
- 232
- 포크
- 70
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/SAP/fundamental-styles --skill scss-style-guide명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | scss-style-guide |
| description | SCSS/CSS coding standards and patterns for fundamental-styles project |
When to use this skill:
Structure:
$block: #{$fd-namespace}-component-name;
.#{$block} {
// Block styles
&__element {
// Element styles
}
&--modifier {
// Modifier styles
}
}
Naming convention:
.fd-{component} (e.g., .fd-card, .fd-button).fd-{component}__{element} (e.g., .fd-card__header, .fd-button__text).fd-{component}--{modifier} (e.g., .fd-card--interactive, .fd-button--emphasized)Rules:
$block: #{$fd-namespace}-component-name;& for elements and modifiersEach component must be completely independent:
✅ DO:
// In card.scss
.#{$block} {
&__content {
// Style card content
}
}
❌ DON'T:
// In card.scss - WRONG!
.#{$block} {
.#{$fd-namespace}-button {
// Never style other components!
color: red;
}
}
If you need to adjust a child component:
.fd-card .fd-button { }, create .fd-button--in-card { }Why this matters:
Standard file header:
@use 'sass:map'; // Only when using Sass maps
@import './new-settings'; // or component-specific variables file
@import './mixins';
$block: #{$fd-namespace}-component-name;
$other-component: #{$fd-namespace}-other-component; // If referencing classes
// Component-specific variables/maps here
$fd-component-sizes: (
's': (
...
),
'm': (
...
)
);
.#{$block} {
// Component styles
}
The @include fd-reset(); mixin is MANDATORY:
.#{$block} {
@include fd-reset(); // ✅ ALWAYS at start of block
&__element {
@include fd-reset(); // ✅ ALWAYS for every element
}
&__another-element {
@include fd-reset(); // ✅ Every element needs it
}
&--modifier {
// ❌ NEVER use fd-reset() for modifiers
--fdComponent_Property: new-value;
}
}
Why:
Use CSS variables for ALL state variations and customization:
.#{$block} {
// 1. Define CSS variables with defaults
--fdCard_Border: 0.0625rem solid var(--sapTile_BorderColor);
--fdCard_Background: var(--sapTile_Background);
--fdCard_Box_Shadow: var(--sapContent_Shadow0);
// 2. Apply variables to properties
border: var(--fdCard_Border);
background: var(--fdCard_Background);
box-shadow: var(--fdCard_Box_Shadow);
// 3. Modifiers override variables, NOT properties
&--interactive {
@include fd-hover() {
--fdCard_Background: var(--sapTile_Hover_Background); // ✅ Override variable
--fdCard_Box_Shadow: var(--sapContent_Shadow1);
}
@include fd-active() {
--fdCard_Background: var(--sapTile_Active_Background); // ✅
}
}
&--transparent {
--fdCard_Background: transparent; // ✅ Override variable
--fdCard_Border: none;
}
}
❌ WRONG - Don't set properties in modifiers:
.#{$block} {
background: var(--sapTile_Background);
&--transparent {
background: transparent; // ❌ WRONG - setting property directly
}
}
✅ RIGHT - Override the variable:
.#{$block} {
--fdCard_Background: var(--sapTile_Background);
background: var(--fdCard_Background);
&--transparent {
--fdCard_Background: transparent; // ✅ RIGHT - override variable
}
}
Benefits:
Variable naming convention:
--fd{Component}_{Property}_{Context}--fdCard_Background, --fdButton_Border_Hover, --fdAvatar_Font_SizeUse @each loops for color sets, sizes, variations:
// Define map of values
$fd-avatar-accent-colors: (
'1': (
'border-color': var(--sapAccentColor1),
'text-color': var(--sapContent_ContrastTextColor),
'background-color': var(--sapAccentColor1)
),
'2': (
'border-color': var(--sapAccentColor2),
'text-color': var(--sapContent_ContrastTextColor),
'background-color': var(--sapAccentColor2)
) // ... more colors
);
// Generate classes with loop
@each $set-name, $color-set in $fd-avatar-accent-colors {
.#{$block}--accent-color-#{$set-name} {
--fdAvatarBorderColor: #{map.get($color-set, 'border-color')};
--fdAvatarColor: #{map.get($color-set, 'text-color')};
--fdAvatarBackgroundColor: #{map.get($color-set, 'background-color')};
}
}
// Size variations
$fd-avatar-sizes: (
'xs': (
'ratio': 2rem,
'font-size': 0.75rem,
'offset': 0.125rem
),
's': (
'ratio': 3rem,
'font-size': 1rem,
'offset':
) // ... more sizes
);
, in {
.#{}--#{} {
: #{map($size-set, 'ratio')};
: #{map($size-set, 'font-size')};
: #{map($size-set, 'offset')};
}
}
When to use loops:
✅ GOOD:
.#{$block} {
// Level 1
&__element {
// Level 2
&--modifier {
// Level 3 - max!
color: red;
}
}
}
❌ BAD:
.#{$block} {
// Level 1
&__header {
// Level 2
.#{$block}__title {
// Level 3
span {
// Level 4
&:hover {
// Level 5 - TOO DEEP!
}
}
}
}
}
Prefer single-class selectors:
.fd-card.fd-card__header.fd-card__header--interactiveAvoid:
*.fd-card > div (use element classes).fd-card div (use element classes).fd-card.is-active.is-selectedException - When nesting is OK:
.#{$block} {
// Pseudo-selectors are fine
&:hover {
}
&:focus {
}
&::before {
}
// Contextual selectors within same component
&__element {
&:first-child {
}
&:last-child {
}
&:only-child {
}
}
// State combinations
@include fd-hover() {
}
@include fd-focus() {
}
}
// ✅ ALWAYS prefer theming variables
color: var(--sapTextColor);
background: var(--sapTile_Background);
border-color: var(--sapTile_BorderColor);
font-size: var(--sapFontSize);
font-family: var(--sapFontFamily);
// ✅ Use rem for dimensions
padding: 1rem; // 16px
margin: 0.5rem; // 8px
border-radius: 0.25rem; // 4px
gap: 0.125rem; // 2px
width: 20rem; // 320px
// ✅ Use rem for borders (converts to 1px)
border-width: 0.0625rem; // 1px
// ✅ Unitless values are fine
line-height: 1.5;
flex: 1;
z-index: 10;
// ✅ Zero doesn't need units
margin: 0;
padding: 0;
// ✅ Percentages for relative sizing
width: 100%;
height: 50%;
❌ NEVER use px directly:
// ❌ WRONG
padding: 16px;
margin: 8px;
border-radius: 4px;
// ✅ Calculations are fine
padding-inline: calc(0.625rem - var(--sapButton_BorderWidth));
height: calc(100% - 2rem);
width: calc(50% - 1rem);
Always use logical properties or RTL-aware mixins for directional spacing and borders.
Logical properties automatically handle RTL direction:
✅ DO - Use logical properties:
.#{$block} {
// Vertical spacing (top/bottom)
margin-block: 1rem; // margin-top + margin-bottom
margin-block-start: 1rem; // margin-top
margin-block-end: 1rem; // margin-bottom
padding-block: 1rem; // padding-top + padding-bottom
padding-block-start: 1rem; // padding-top
padding-block-end: 1rem; // padding-bottom
// Horizontal spacing (left/right - auto RTL)
margin-inline: 1rem; // margin-left + margin-right (flips in RTL)
margin-inline-start: 1rem; // margin-left in LTR, margin-right in RTL
margin-inline-end: 1rem; // margin-right in LTR, margin-left in RTL
padding-inline: 1rem; // padding-left + padding-right (flips in RTL)
padding-inline-start: 1rem; // padding-left in LTR, padding-right in RTL
padding-inline-end: 1rem; // padding-right in LTR, padding-left in RTL
// Positioning (auto RTL)
inset-inline-start: 0; // left in LTR, right in RTL
inset-inline-end: 0; // right in LTR, left in RTL
: ;
: ;
}
❌ DON'T - Avoid directional properties:
.#{$block} {
// ❌ WRONG - Not RTL-aware
margin-left: 1rem;
margin-right: 1rem;
padding-left: 1rem;
padding-right: 1rem;
left: 0;
right: 0;
}
For cases where logical properties aren't sufficient, use provided mixins:
.#{$block} {
// RTL-aware positioning
@include fd-set-position-right(1rem); // right in LTR, left in RTL
@include fd-set-position-left(1rem); // left in LTR, right in RTL
// RTL-aware margins
@include fd-set-margin-right(1rem); // margin-right in LTR, margin-left in RTL
@include fd-set-margin-left(1rem); // margin-left in LTR, margin-right in RTL
// RTL-aware padding
@include fd-set-padding-right(1rem); // padding-right in LTR, padding-left in RTL
@include fd-set-padding-left(1rem); // padding-left in LTR, padding-right in RTL
// RTL-specific styles
@include fd-rtl() {
direction: rtl;
text-align: right;
}
}
Border logical properties also handle RTL automatically:
✅ DO - Use logical border properties:
.#{$block} {
// All borders
border: 0.0625rem solid var(--sapTile_BorderColor);
// Inline borders (horizontal - auto RTL)
border-inline: 0.0625rem solid var(--sapTile_BorderColor);
border-inline-start: 0.0625rem solid var(--sapTile_BorderColor); // left in LTR, right in RTL
border-inline-end: 0.0625rem solid var(--sapTile_BorderColor); // right in LTR, left in RTL
// Block borders (vertical)
border-block: 0.0625rem solid var(--sapTile_BorderColor);
border-block-start: 0.0625rem solid var(--sapTile_BorderColor); // top
border-block-end: 0.0625rem solid var(--sapTile_BorderColor); // bottom
// Border radius (use logical order)
border-start-start-radius: 0.5rem; // top-left in LTR, top-right in RTL
border-start-end-radius: 0.5rem; // top-right in LTR, top-left in RTL
border-end-start-radius: 0.5rem; // bottom-left in LTR, bottom-right in RTL
border-end-end-radius: 0.5rem; // bottom-right in LTR, bottom-left in RTL
}
❌ DON'T - Avoid directional border properties:
.#{$block} {
// ❌ WRONG - Not RTL-aware
border-left: 0.0625rem solid var(--sapTile_BorderColor);
border-right: 0.0625rem solid var(--sapTile_BorderColor);
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
}
.#{$block} {
@include fd-reset();
// ✅ Vertical spacing - always explicit
padding-block-start: 1rem;
padding-block-end: 1rem;
margin-block: 0.5rem;
// ✅ Horizontal spacing - logical properties
padding-inline-start: 1rem;
padding-inline-end: 0.5rem;
margin-inline-start: 0.25rem;
// ✅ Borders - logical properties
border-inline-start: 0.0625rem solid var(--sapTile_BorderColor);
// ✅ Positioning - logical properties
inset-inline-start: 0;
inset-block-start: 0;
&__icon {
@include fd-reset();
// ✅ For complex positioning, use mixins
@include fd-set-position-right(0.5rem);
@include fd-set-margin-left(0.25rem);
}
// ✅ RTL-specific overrides
@include fd-rtl() {
direction: rtl;
}
}
Why this matters:
Use provided mixins for interactive states:
.#{$block} {
&--interactive {
cursor: pointer;
// Hover state
@include fd-hover() {
--fdCard_Background: var(--sapTile_Hover_Background);
--fdCard_Box_Shadow: var(--sapContent_Shadow1);
}
// Active/pressed state
@include fd-active() {
--fdCard_Background: var(--sapTile_Active_Background);
--fdCard_Box_Shadow: none;
}
// Focus state
@include fd-focus() {
outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
outline-offset: var(--sapContent_FocusOffset);
}
// Disabled state
@include fd-disabled() {
opacity: var(--sapContent_DisabledOpacity);
cursor: not-allowed;
}
// Selected state
@include fd-selected() {
--fdCard_Border: var(--sapContent_FocusWidth) solid var(--sapContent_FocusColor);
}
// Toggled state (for toggle buttons, switches)
@include fd-toggled() {
--fdButton_Background: var(--sapButton_Selected_Background);
}
}
}
Available state mixins:
@include fd-hover() - Hover state@include fd-active() - Active/pressed state@include fd-focus() - Keyboard focus state@include fd-disabled() - Disabled state@include fd-selected() - Selected state (for lists, tables)@include fd-toggled() - Toggled state (for buttons, switches)@include fd-readonly() - Read-only state.#{$block} {
// Default/desktop styles
--fdCard_Padding: 3rem;
@include fd-media-md() {
// Medium screens (tablets)
--fdCard_Padding: 2rem;
}
@include fd-media-sm() {
// Small screens (mobile)
--fdCard_Padding: 1rem;
--fdCard_Flex_Direction: column;
}
}
.#{$block} {
--fdButton_Height: var(--sapElement_Height); // 2.75rem
--fdButton_Padding: 0.625rem;
@include fd-compact-or-condensed() {
--fdButton_Height: var(--sapElement_Compact_Height); // 2rem
--fdButton_Padding: 0.5rem;
}
}
@include fd-flex(); // display: flex
@include fd-flex(column); // flex-direction: column
@include fd-flex() {
gap: 1rem;
} // flex with gap
@include fd-flex-center(); // center both axes
@include fd-flex-vertical-center(); // center on cross axis
@include fd-inline-flex-center(); // inline-flex + center
// With additional properties
@include fd-flex(column) {
gap: 0.5rem;
align-items: flex-start;
}
@include fd-set-position-right(1rem); // right: 1rem (flips in RTL)
@include fd-set-position-left(1rem); // left: 1rem (flips in RTL)
@include fd-set-margin-right(1rem); // margin-right: 1rem (flips in RTL)
@include fd-set-margin-left(1rem); // margin-left: 1rem (flips in RTL)
@include fd-set-padding-right(1rem); // padding-right: 1rem (flips in RTL)
@include fd-set-padding-left(1rem); // padding-left: 1rem (flips in RTL)
// For RTL-specific styles
@include fd-rtl() {
direction: rtl;
}
@include fd-ellipsis(); // Single-line text overflow with ellipsis
// Outputs:
// overflow: hidden;
// white-space: nowrap;
// text-overflow: ellipsis;
@include fd-set-border(var(--sapBorderColor)); // Adds 1px solid border
@include fd-square(2rem); // width: 2rem; height: 2rem;
@include fd-reset-spacing(); // margin: 0; padding: 0;
.#{$block}--interactive {
position: relative;
// Extend clickable area beyond visual bounds
&::before {
content: '';
display: block;
position: absolute;
inset: -0.5rem; // Expand by 8px on all sides
}
}
.#{$block} {
position: relative;
@include fd-focus() {
outline: none; // Remove default outline
&::after {
content: '';
position: absolute;
display: block;
border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
inset: 0.125rem;
border-radius: var(--fdCard_Focus_Outline_Radius);
z-index: 3;
}
}
}
.#{$block} {
position: relative;
&__badge {
@include fd-reset();
@include fd-set-position-right(var(--fdButton_Badge_Offset));
position: absolute;
top: var(--fdButton_Badge_Offset);
z-index: 1;
}
}
Follow this order for consistency:
$block: #{$fd-namespace}-component-name;
// 1. Component-specific variables/maps
$fd-component-sizes: (...);
$fd-component-colors: (...);
// 2. Mixins (if component-specific)
@mixin fd-component-helper() {
// ...
}
// 3. Main block
.#{$block} {
// A. CSS variables
--fdComponent_Property: value;
--fdComponent_Other_Property: value;
// B. Mixins
@include fd-reset();
@include fd-flex();
// C. Properties (roughly grouped: layout, spacing, typography, colors, effects)
position: relative;
display: flex;
padding: 1rem;
margin: 0;
font-size: var(--sapFontSize);
color: var(--sapTextColor);
background: var(--fdComponent_Background);
border: var(--fdComponent_Border);
box-shadow: var(--fdComponent_Box_Shadow);
// D. Pseudo-elements
&::before {
content: '';
// ...
}
// E. Block elements
&__element-name {
@include fd-reset();
// properties...
}
&__another-element {
@include fd-reset();
// properties...
}
& {
: new-value;
}
& {
: another-value;
}
& {
: pointer;
fd-hover() {
: (--sapTile_Hover_Background);
}
fd-active() {
: (--sapTile_Active_Background);
}
}
, in {
&--#{} {
: #{map($size-set, 'width')};
}
}
fd-compact-or-condensed() {
: ;
}
fd-media-sm() {
: column;
}
}
// In card.scss - WRONG!
.#{$block} {
.#{$fd-namespace}-button {
color: red; // ❌ Never style other components!
}
.#{$fd-namespace}-list__item {
padding: 0; // ❌ WRONG!
}
}
// ❌ WRONG
.#{$block} {
background: var(--fdCard_Background);
&--hover {
background: var(--sapTile_Hover_Background); // ❌ Setting property
}
}
// ✅ RIGHT
.#{$block} {
--fdCard_Background: var(--sapTile_Background);
background: var(--fdCard_Background);
&--hover {
--fdCard_Background: var(--sapTile_Hover_Background); // ✅ Override variable
}
}
// ❌ WRONG - Too deep
.#{$block} {
&__header {
.#{$block}__title {
span {
&:hover {
// 5 levels!
}
}
}
}
}
// ✅ RIGHT - Use element classes
.#{$block} {
&__header {
}
&__title {
&:hover {
// 3 levels max
}
}
}
// ❌ WRONG
.#{$block} {
div {
// Tag selector
padding: 1rem;
}
* {
// Universal selector
box-sizing: border-box;
}
}
// ✅ RIGHT - Use element classes
.#{$block} {
&__content {
padding: 1rem;
}
}
// ❌ WRONG
.#{$block}__element {
// Missing @include fd-reset();
color: red;
}
// ✅ RIGHT
.#{$block}__element {
@include fd-reset(); // Always include!
color: red;
}
// ❌ WRONG
.#{$block} {
padding: 16px;
margin: 8px;
border-radius: 4px;
}
// ✅ RIGHT
.#{$block} {
padding: 1rem; // 16px
margin: 0.5rem; // 8px
border-radius: 0.25rem; // 4px
}
// ❌ WRONG - Repetitive
.#{$block}--accent-color-1 {
--fdAvatar_Color: var(--sapAccentColor1);
}
.#{$block}--accent-color-2 {
--fdAvatar_Color: var(--sapAccentColor2);
}
.#{$block}--accent-color-3 {
--fdAvatar_Color: var(--sapAccentColor3);
}
// ... 10 more copies
// ✅ RIGHT - Use a loop
@each $num in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) {
.#{$block}--accent-color-#{$num} {
--fdAvatar_Color: var(--sapAccentColor#{$num});
}
}
// ❌ WRONG - Not RTL-aware
.#{$block} {
margin-left: 1rem;
margin-right: 0.5rem;
padding-left: 1rem;
border-left: 0.0625rem solid var(--sapTile_BorderColor);
left: 0;
right: auto;
}
// ✅ RIGHT - Use logical properties
.#{$block} {
margin-inline-start: 1rem; // Auto RTL
margin-inline-end: 0.5rem; // Auto RTL
padding-inline-start: 1rem; // Auto RTL
border-inline-start: 0.0625rem solid var(--sapTile_BorderColor); // Auto RTL
inset-inline-start: 0; // Auto RTL
inset-inline-end: auto; // Auto RTL
}
// ✅ ALSO RIGHT - Use mixins when needed
.#{$block} {
@include fd-set-margin-left(1rem); // Auto RTL
@include fd-set-position-right(0); // Auto RTL
}
// ❌ WRONG - Physical corners
.#{$block} {
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
// ✅ RIGHT - Logical corners (when directional matters)
.#{$block} {
border-start-start-radius: 0.5rem; // top-left in LTR, top-right in RTL
border-start-end-radius: 0.5rem; // top-right in LTR, top-left in RTL
border-end-start-radius: 0; // bottom-left in LTR, bottom-right in RTL
border-end-end-radius: 0; // bottom-right in LTR, bottom-left in RTL
}
// ✅ BEST - When all corners are same, use shorthand
.#{$block} {
border-radius: 0.5rem 0.5rem 0 0; // Works in both LTR/RTL when symmetric
}
.#{$block} {
// Disabled via attribute
&[aria-disabled='true'],
&[disabled] {
@include fd-disabled() {
opacity: var(--sapContent_DisabledOpacity);
cursor: not-allowed;
pointer-events: none;
}
}
// Selected state
&[aria-selected='true'] {
@include fd-selected() {
--fdComponent_Background: var(--sapList_SelectionBackgroundColor);
--fdComponent_Border_Color: var(--sapList_SelectionBorderColor);
}
}
// Expanded state (for accordions, dropdowns)
&[aria-expanded='true'] {
--fdComponent_Icon_Rotation: 180deg;
}
// Pressed state (for toggle buttons)
&[aria-pressed='true'] {
@include fd-toggled() {
--fdButton_Background: var(--sapButton_Selected_Background);
}
}
// Hidden state
&[aria-hidden='true'] {
display: none;
}
}
When writing or reviewing SCSS code, verify:
Structure & Naming:
fd-component, fd-component__element, fd-component--modifier)$block variableReset & Mixins:
@include fd-reset() at start of every block and element (but NOT modifiers)fd-flex(), fd-ellipsis(), etc.)fd-hover(), fd-active(), etc.)CSS Variables:
--fd{Component}_{Property}Patterns & Best Practices:
@each) used for repetitive patterns (colors, sizes, states)Units & Values:
rem units used for dimensions (not px)RTL Support:
margin-inline-start, padding-block, etc. (not margin-left, padding-top)border-inline-start, border-block-end, etc. (not border-left, border-top)fd-set-position-right, etc.)left, right, margin-left, padding-right, border-leftResponsive & Breakpoints:
fd-media-sm(), fd-compact-or-condensed())Accessibility:
Text:
--sapTextColor - Primary text--sapContent_LabelColor - Labels--sapLink_Color - Links--sapContent_IconColor - IconsBackgrounds:
--sapBackgroundColor - Page background--sapTile_Background - Card/tile background--sapGroup_ContentBackground - Content area background--sapButton_Background - Button backgroundBorders:
--sapTile_BorderColor - Tile borders--sapGroup_ContentBorderColor - Content borders--sapButton_BorderColor - Button bordersSemantic Colors:
--sapPositiveColor - Success/green--sapNegativeColor - Error/red--sapCriticalColor - Warning/orange--sapInformativeColor - Info/blue--sapNeutralColor - Neutral/grayInteractive States:
--sapTile_Hover_Background - Hover background--sapTile_Active_Background - Active/pressed background--sapButton_Selected_Background - Selected background--sapContent_FocusColor - Focus outline color--sapFontFamily - Default font family--sapFontHeaderFamily - Header font family--sapFontSize - Base font size (0.875rem)--sapFontSmallSize - Small text--sapFontLargeSize - Large text--sapFontHeader1Size through --sapFontHeader6Size - Heading sizes--sapElement_Height - Standard element height (2.75rem)--sapElement_Compact_Height - Compact element height (2rem)--sapContent_FocusWidth - Focus outline width--sapContent_FocusOffset - Focus outline offset--sapContent_Shadow0 through --sapContent_Shadow3 - Shadow levels--sapTile_BorderCornerRadius - Border radius for tiles--sapButton_BorderCornerRadius - Border radius for buttons--sapContent_DisabledOpacity - Opacity for disabled elements$block: #{$fd-namespace}-link;
.#{$block} {
@include fd-reset();
color: var(--sapLink_Color);
text-decoration: var(--sapLink_TextDecoration);
cursor: pointer;
@include fd-hover() {
color: var(--sapLink_Hover_Color);
text-decoration: var(--sapLink_Hover_TextDecoration);
}
@include fd-active() {
color: var(--sapLink_Active_Color);
}
@include fd-focus() {
outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
outline-offset: 0.0625rem;
}
&--subtle {
color: var(--sapLink_SubtleColor);
}
&--emphasized {
font-weight: bold;
}
}
$block: #{$fd-namespace}-card;
.#{$block} {
--fdCard_Border: 0.0625rem solid var(--sapTile_BorderColor);
--fdCard_Background: var(--sapTile_Background);
--fdCard_Box_Shadow: var(--sapContent_Shadow0);
@include fd-reset();
@include fd-flex(column);
position: relative;
border: var(--fdCard_Border);
background: var(--fdCard_Background);
box-shadow: var(--fdCard_Box_Shadow);
border-radius: var(--sapTile_BorderCornerRadius);
&__header {
@include fd-reset();
padding: 1rem;
border-bottom: 0.0625rem solid var(--sapTile_SeparatorColor);
}
&__header-main {
@include fd-reset();
@include fd-flex() {
gap: 0.5rem;
align-items: center;
}
}
&__title {
@include fd-reset();
font-family: var(--sapFontHeaderFamily);
font-size: var(--sapFontHeader3Size);
color: var(--sapTile_TitleTextColor);
}
&--interactive {
cursor: pointer;
@include fd-hover() {
--fdCard_Background: (--sapTile_Hover_Background);
: (--sapContent_Shadow1);
}
fd-active() {
: (--sapTile_Active_Background);
: none;
}
fd-focus() {
: (--sapContent_FocusWidth) solid (--sapContent_FocusColor);
: ;
}
}
fd-compact-or-condensed() {
&__header {
: ;
}
}
}
Remember: These standards exist to ensure consistency, maintainability, and accessibility across the entire fundamental-styles library. When in doubt, look at similar existing components for reference patterns.
Fiori guidelines for action components Button, Product Switch (App Launcher), User Menu, Scrollbar
Fiori guidelines for navigation components such as Breadcrumb, Menu, Link, Shellbar, Vertical Navigation, etc
Browse fundamental-styles component documentation with complete HTML examples from 140+ auto-generated markdown files. Use this when the user asks about component examples, modifiers, variants, HTML structure, or wants to see working code for any fundamental-styles component (button, table, input, dialog, etc.). Also trigger when they mention Storybook examples, CSS components, or need copy-paste-ready HTML.
SOC 직업 분류 기준