-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: alpha release of design tokens (#1770)
- Loading branch information
1 parent
f83c486
commit 2786760
Showing
81 changed files
with
8,060 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ dependent-usage-analyzer/ | |
build-scss.js | ||
component-generator/ | ||
example/ | ||
style-dictionary-build/ | ||
build-tokens.js |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,43 @@ | ||
.badge { | ||
display: inline-block; | ||
padding: $badge-padding-y $badge-padding-x; | ||
|
||
@include font-size($badge-font-size); | ||
|
||
font-weight: $badge-font-weight; | ||
line-height: 1; | ||
text-align: center; | ||
white-space: nowrap; | ||
vertical-align: baseline; | ||
|
||
@include border-radius($badge-border-radius); | ||
@include transition($badge-transition); | ||
|
||
@at-root a#{&} { | ||
@include hover-focus() { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&:empty { | ||
display: none; | ||
} | ||
} | ||
|
||
.btn .badge { | ||
position: relative; | ||
top: -1px; | ||
} | ||
|
||
.badge-pill { | ||
padding-right: $badge-pill-padding-x; | ||
padding-left: $badge-pill-padding-x; | ||
|
||
@include border-radius($badge-pill-border-radius); | ||
} | ||
|
||
@each $color, $value in $theme-colors { | ||
.badge-#{$color} { | ||
@include badge-variant($value); | ||
} | ||
} |
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,126 @@ | ||
.btn-group, | ||
.btn-group-vertical { | ||
position: relative; | ||
display: inline-flex; | ||
vertical-align: middle; | ||
|
||
> .btn { | ||
position: relative; | ||
flex: 1 1 auto; | ||
|
||
@include hover() { | ||
z-index: 1; | ||
} | ||
|
||
&:focus, | ||
&:active, | ||
&.active { | ||
z-index: 1; | ||
} | ||
} | ||
} | ||
|
||
.btn-toolbar { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; | ||
|
||
.input-group { | ||
width: auto; | ||
} | ||
} | ||
|
||
.btn-group { | ||
> .btn:not(:first-child), | ||
> .btn-group:not(:first-child) { | ||
margin-left: calc($btn-border-width * -1); | ||
} | ||
|
||
> .btn:not(:last-child):not(.dropdown-toggle), | ||
> .btn-group:not(:last-child) > .btn { | ||
@include border-right-radius(0); | ||
} | ||
|
||
> .btn:not(:first-child), | ||
> .btn-group:not(:first-child) > .btn { | ||
@include border-left-radius(0); | ||
} | ||
} | ||
|
||
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */ | ||
.btn-group-sm > .btn { @extend .btn-sm; } | ||
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */ | ||
.btn-group-lg > .btn { @extend .btn-lg; } | ||
|
||
.dropdown-toggle-split { | ||
padding-right: calc($btn-padding-x * .75); | ||
padding-left: calc($btn-padding-x * .75); | ||
|
||
&::after, | ||
.dropup &::after, | ||
.dropright &::after { | ||
margin-left: 0; | ||
} | ||
|
||
.dropleft &::before { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
.btn-sm + .dropdown-toggle-split { | ||
padding-right: calc($btn-padding-x-sm * .75); | ||
padding-left: calc($btn-padding-x-sm * .75); | ||
} | ||
|
||
.btn-lg + .dropdown-toggle-split { | ||
padding-right: calc($btn-padding-x-lg * .75); | ||
padding-left: calc($btn-padding-x-lg * .75); | ||
} | ||
|
||
.btn-group.show .dropdown-toggle { | ||
@include box-shadow($btn-active-box-shadow); | ||
|
||
&.btn-link { | ||
@include box-shadow(none); | ||
} | ||
} | ||
|
||
.btn-group-vertical { | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: center; | ||
|
||
> .btn, | ||
> .btn-group { | ||
width: 100%; | ||
} | ||
|
||
> .btn:not(:first-child), | ||
> .btn-group:not(:first-child) { | ||
margin-top: calc($btn-border-width * -1); | ||
} | ||
|
||
> .btn:not(:last-child):not(.dropdown-toggle), | ||
> .btn-group:not(:last-child) > .btn { | ||
@include border-bottom-radius(0); | ||
} | ||
|
||
> .btn:not(:first-child), | ||
> .btn-group:not(:first-child) > .btn { | ||
@include border-top-radius(0); | ||
} | ||
} | ||
|
||
.btn-group-toggle { | ||
> .btn, | ||
> .btn-group > .btn { | ||
margin-bottom: 0; | ||
|
||
input[type="radio"], | ||
input[type="checkbox"] { | ||
position: absolute; | ||
clip: rect(0, 0, 0, 0); | ||
pointer-events: none; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@import "variables"; | ||
@import "~bootstrap/scss/close"; | ||
@import "close-button-bootstrap"; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Close | ||
|
||
$close-font-size: var(--pgn-typography-close-button-font-size) !default; | ||
$close-font-weight: var(--pgn-typography-close-button-font-weight) !default; | ||
$close-color: var(--pgn-color-close-button) !default; | ||
$close-text-shadow: var(--pgn-elevation-close-button-text-shadow) !default; | ||
$close-font-size: var(--pgn-close-button-font-size) !default; | ||
$close-font-weight: var(--pgn-close-button-font-weight) !default; | ||
$close-color: var(--pgn-close-button-color) !default; | ||
$close-text-shadow: var(--pgn-close-button-text-shadow) !default; |
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,32 @@ | ||
.close { | ||
float: right; | ||
|
||
@include font-size($close-font-size); | ||
|
||
font-weight: $close-font-weight; | ||
line-height: 1; | ||
color: $close-color; | ||
text-shadow: $close-text-shadow; | ||
opacity: .5; | ||
|
||
@include hover() { | ||
color: $close-color; | ||
text-decoration: none; | ||
} | ||
|
||
&:not(:disabled):not(.disabled) { | ||
@include hover-focus() { | ||
opacity: .75; | ||
} | ||
} | ||
} | ||
|
||
button.close { | ||
padding: 0; | ||
background-color: transparent; | ||
border: 0; | ||
} | ||
|
||
a.close.disabled { | ||
pointer-events: none; | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@import "variables"; | ||
@import "~bootstrap/scss/code"; | ||
@import "code-bootstrap"; |
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,56 @@ | ||
code { | ||
@include font-size($code-font-size); | ||
|
||
color: $code-color; | ||
word-wrap: break-word; | ||
|
||
a > & { | ||
color: inherit; | ||
} | ||
} | ||
|
||
// User input typically entered via keyboard | ||
kbd { | ||
padding: $kbd-padding-y $kbd-padding-x; | ||
|
||
@include font-size($kbd-font-size); | ||
|
||
color: $kbd-color; | ||
background-color: $kbd-bg; | ||
|
||
@include border-radius($border-radius-sm); | ||
@include box-shadow($kbd-box-shadow); | ||
|
||
kbd { | ||
padding: 0; | ||
|
||
@include font-size(100%); | ||
|
||
font-weight: $nested-kbd-font-weight; | ||
|
||
@include box-shadow(none); | ||
} | ||
} | ||
|
||
// Blocks of code | ||
pre { | ||
display: block; | ||
|
||
@include font-size($code-font-size); | ||
|
||
color: $pre-color; | ||
|
||
// Account for some code outputs that place code tags in pre tags | ||
code { | ||
@include font-size(inherit); | ||
|
||
color: inherit; | ||
word-break: normal; | ||
} | ||
} | ||
|
||
// Enable scrollable blocks of code | ||
.pre-scrollable { | ||
max-height: $pre-scrollable-max-height; | ||
overflow-y: scroll; | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// Collapsible | ||
|
||
$collapsible-card-spacer-y: var(--pgn-spacing-collapsible-card-spacer-y-base) !default; | ||
$collapsible-card-spacer-x: var(--pgn-spacing-collapsible-card-spacer-x-base) !default; | ||
$collapsible-card-spacer-y-lg: var(--pgn-spacing-collapsible-card-spacer-y-lg) !default; | ||
$collapsible-card-spacer-x-lg: var(--pgn-spacing-collapsible-card-spacer-x-lg) !default; | ||
$collapsible-card-body-spacer-left: var(--pgn-spacing-collapsible-card-spacer-left-body) !default; | ||
$collapsible-card-spacer-icon: var(--pgn-spacing-collapsible-card-spacer-icon) !default; | ||
$collapsible-card-spacer-y: var(--pgn-collapsible-card-spacer-y-base) !default; | ||
$collapsible-card-spacer-x: var(--pgn-collapsible-card-spacer-x-base) !default; | ||
$collapsible-card-spacer-y-lg: var(--pgn-collapsible-card-spacer-y-lg) !default; | ||
$collapsible-card-spacer-x-lg: var(--pgn-collapsible-card-spacer-x-lg) !default; | ||
$collapsible-card-body-spacer-left: var(--pgn-collapsible-card-spacer-left-body) !default; | ||
$collapsible-card-spacer-icon: var(--pgn-collapsible-card-spacer-icon) !default; | ||
|
||
$collapsible-basic-spacer-y: var(--pgn-spacing-collapsible-card-spacer-basic-y) !default; | ||
$collapsible-basic-spacer-x: var(--pgn-spacing-collapsible-card-spacer-basic-x) !default; | ||
$collapsible-basic-spacer-icon: var(--pgn-spacing-collapsible-card-spacer-basic-icon) !default; | ||
$collapsible-basic-spacer-y: var(--pgn-collapsible-card-spacer-basic-y) !default; | ||
$collapsible-basic-spacer-x: var(--pgn-collapsible-card-spacer-basic-x) !default; | ||
$collapsible-basic-spacer-icon: var(--pgn-collapsible-card-spacer-basic-icon) !default; |
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
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,12 @@ | ||
.paragon-fieldset { | ||
margin-bottom: calc($spacer * 1.5); | ||
|
||
.form-control { | ||
height: auto; | ||
} | ||
|
||
fieldset legend { | ||
width: auto; | ||
margin-bottom: 0; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Image thumbnails | ||
|
||
$thumbnail-padding: var(--pgn-spacing-image-thumbnail-padding) !default; | ||
$thumbnail-bg: var(--pgn-color-image-thumbnail-bg) !default; | ||
$thumbnail-border-width: var(--pgn-size-image-thumbnail-border-width) !default; | ||
$thumbnail-border-color: var(--pgn-color-image-thumbnail-border) !default; | ||
$thumbnail-border-radius: var(--pgn-size-image-thumbnail-border-radius) !default; | ||
$thumbnail-box-shadow: var(--pgn-elevation-image-thumbnail-box-shadow) !default; | ||
$thumbnail-padding: var(--pgn-image-thumbnail-padding) !default; | ||
$thumbnail-bg: var(--pgn-image-thumbnail-bg) !default; | ||
$thumbnail-border-width: var(--pgn-image-thumbnail-border-width) !default; | ||
$thumbnail-border-color: var(--pgn-image-thumbnail-border-color) !default; | ||
$thumbnail-border-radius: var(--pgn-image-thumbnail-border-radius) !default; | ||
$thumbnail-box-shadow: var(--pgn-image-thumbnail-box-shadow) !default; | ||
|
||
// Figures | ||
|
||
$figure-caption-font-size: var(--pgn-typography-image-figure-caption-font-size) !default; | ||
$figure-caption-color: var(--pgn-color-image-figure-caption) !default; | ||
$figure-caption-font-size: var(--pgn-image-figure-caption-font-size) !default; | ||
$figure-caption-color: var(--pgn-image-figure-caption-color) !default; |
Oops, something went wrong.