forked from microsoft/fast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add optional design system to the development site (microsoft#1749
- Loading branch information
Showing
4 changed files
with
292 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
243 changes: 243 additions & 0 deletions
243
packages/fast-components-styles-msft/src/design-system/design-system.schema.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"title": "Design System", | ||
"description": "A design system's schema definition.", | ||
"id": "design-system", | ||
"type": "object", | ||
"properties": { | ||
"backgroundColor": { | ||
"title": "Background color", | ||
"type": "string", | ||
"default": "#FFFFFF" | ||
}, | ||
"contrast": { | ||
"title": "Contrast", | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"density": { | ||
"title": "Density", | ||
"type": "number", | ||
"enum": [ | ||
-3, | ||
-2, | ||
-1, | ||
0, | ||
1, | ||
2, | ||
3 | ||
], | ||
"default": 0 | ||
}, | ||
"designUnit": { | ||
"title": "Design unit", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"baseHeightMultiplier": { | ||
"title": "Base height multiplier", | ||
"type": "number", | ||
"default": 8 | ||
}, | ||
"baseHorizontalSpacingMultiplier": { | ||
"title": "Base horizontal spacing multiplier", | ||
"type": "number", | ||
"default": 3 | ||
}, | ||
"direction": { | ||
"title": "Direction", | ||
"type": "string", | ||
"enum": [ | ||
"ltr", | ||
"rtl" | ||
], | ||
"default": "ltr" | ||
}, | ||
"fontWeight": { | ||
"title": "Font weight", | ||
"type": "object", | ||
"properties": { | ||
"light": { | ||
"title": "Light", | ||
"type": "number", | ||
"default": 100 | ||
}, | ||
"semilight": { | ||
"title": "Semilight", | ||
"type": "number", | ||
"default": 200 | ||
}, | ||
"normal": { | ||
"title": "Normal", | ||
"type": "number", | ||
"default": 400 | ||
}, | ||
"semibold": { | ||
"title": "Semibold", | ||
"type": "number", | ||
"default": 600 | ||
}, | ||
"bold": { | ||
"title": "Bold", | ||
"type": "number", | ||
"default": 700 | ||
} | ||
} | ||
}, | ||
"cornerRadius": { | ||
"title": "Corner radius", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"outlineWidth": { | ||
"title": "Outline width", | ||
"type": "number", | ||
"default": 1 | ||
}, | ||
"focusOutlineWidth": { | ||
"title": "Focus outline width", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"disabledOpacity": { | ||
"title": "Disabled opacity", | ||
"type": "number", | ||
"default": 0.3 | ||
}, | ||
"accentFillRestDelta": { | ||
"title": "Accent fill rest delta", | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"accentFillHoverDelta": { | ||
"title": "Accent fill hover delta", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"accentFillActiveDelta": { | ||
"title": "Accent fill active delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"accentFillSelectedDelta": { | ||
"title": "Accent fill selected delta", | ||
"type": "number", | ||
"default": 12 | ||
}, | ||
"accentForegroundRestDelta": { | ||
"title": "Accent foreground rest delta", | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"accentForegroundHoverDelta": { | ||
"title": "Accent foreground hover delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"accentForegroundActiveDelta": { | ||
"title": "Accent foreground active delta", | ||
"type": "number", | ||
"default": 8 | ||
}, | ||
"neutralFillRestDelta": { | ||
"title": "Neutral fill rest delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"neutralFillHoverDelta": { | ||
"title": "Neutral fill hover delta", | ||
"type": "number", | ||
"default": 3 | ||
}, | ||
"neutralFillActiveDelta": { | ||
"title": "Neutral fill active delta", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"neutralFillSelectedDelta": { | ||
"title": "Neutral fill selected delta", | ||
"type": "number", | ||
"default": 8 | ||
}, | ||
"neutralFillInputRestDelta": { | ||
"title": "Neutral fill input rest delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"neutralFillInputHoverDelta": { | ||
"title": "Neutral fill input hover delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"neutralFillInputActiveDelta": { | ||
"title": "Neutral fill input active delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"neutralFillInputSelectedDelta": { | ||
"title": "Neutral fill input selected delta", | ||
"type": "number", | ||
"default": 4 | ||
}, | ||
"neutralFillStealthRestDelta": { | ||
"title": "Neutral fill stealth rest delta", | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"neutralFillStealthHoverDelta": { | ||
"title": "Neutral fill stealth hover delta", | ||
"type": "number", | ||
"default": 3 | ||
}, | ||
"neutralFillStealthActiveDelta": { | ||
"title": "Neutral fill stealth active delta", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"neutralFillStealthSelectedDelta": { | ||
"title": "Neutral fill stealth selected delta", | ||
"type": "number", | ||
"default": 8 | ||
}, | ||
"neutralFillCardDelta": { | ||
"title": "Neutral fill card delta", | ||
"type": "number", | ||
"default": 2 | ||
}, | ||
"neutralForegroundDarkIndex": { | ||
"title": "Neutral foreground dark index", | ||
"type": "number", | ||
"default": 58 | ||
}, | ||
"neutralForegroundLightIndex": { | ||
"title": "Neutral foreground light index", | ||
"type": "number", | ||
"default": 0 | ||
}, | ||
"neutralForegroundHoverDelta": { | ||
"title": "Neutral foreground hover delta", | ||
"type": "number", | ||
"default": 8 | ||
}, | ||
"neutralForegroundActiveDelta": { | ||
"title": "Neutral foreground active delta", | ||
"type": "number", | ||
"default": 16 | ||
}, | ||
"neutralOutlineRestDelta": { | ||
"title": "Neutral outline rest delta", | ||
"type": "number", | ||
"default": 12 | ||
}, | ||
"neutralOutlineHoverDelta": { | ||
"title": "Neutral outline hover delta", | ||
"type": "number", | ||
"default": 24 | ||
}, | ||
"neutralOutlineActiveDelta": { | ||
"title": "Neutral outline active delta", | ||
"type": "number", | ||
"default": 18 | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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