forked from uncch-rdmc/dataverse-frontend
-
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.
Merge pull request IQSS#51 from IQSS/feature/add-the-design-tokens-of…
…-the-design-system 30 - Add the design tokens of the design system
- Loading branch information
Showing
44 changed files
with
433 additions
and
121 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,68 @@ | ||
@import "src/sections/ui/assets/styles/design-tokens/typography.module"; | ||
@import "src/sections/ui/assets/styles/design-tokens/colors.module"; | ||
|
||
// Theme | ||
|
||
$primary: $dv-primary-color; | ||
$secondary: $dv-secondary-color; | ||
$success: $dv-success-color; | ||
$info: $dv-info-color; | ||
$warning: $dv-warning-color; | ||
$danger: $dv-danger-color; | ||
|
||
@import "node_modules/bootstrap/scss/functions"; | ||
@import "node_modules/bootstrap/scss/variables"; | ||
@import "node_modules/bootstrap/scss/mixins"; | ||
|
||
// Body | ||
$body-color: $dv-text-color; | ||
$headings-color: $dv-headings-color; | ||
|
||
// Typography | ||
$font-family-base: $dv-font-family; | ||
|
||
$font-size-base: $dv-font-size; | ||
$font-size-sm: $dv-font-size-sm; | ||
|
||
$line-height-base: $dv-line-height; | ||
|
||
$font-weight-normal: $dv-font-weight; | ||
$font-weight-light: $dv-font-weight-light; | ||
$font-weight-bold: $dv-font-weight-bold; | ||
|
||
// Links | ||
$link-color: $dv-link-color; | ||
$link-hover-color: $dv-link-hover-color; | ||
|
||
// Base | ||
@import "node_modules/bootstrap/scss/maps"; | ||
@import "node_modules/bootstrap/scss/root"; | ||
@import "node_modules/bootstrap/scss/reboot"; | ||
@import "node_modules/bootstrap/scss/type"; | ||
|
||
// Buttons and Dropdowns | ||
@import "bootstrap/scss/buttons"; | ||
@import "bootstrap/scss/dropdown"; | ||
|
||
// Grid | ||
@import "node_modules/bootstrap/scss/utilities"; | ||
@import "node_modules/bootstrap/scss/utilities/api"; | ||
@import "node_modules/bootstrap/scss/containers"; | ||
@import "node_modules/bootstrap/scss/grid"; | ||
|
||
// Badge | ||
@import "bootstrap/scss/badge"; | ||
|
||
// Navbar | ||
|
||
$navbar-light-brand-color: $dv-brand-color; | ||
$navbar-brand-font-size: $dv-brand-font-size; | ||
|
||
@import "bootstrap/scss/nav"; | ||
@import "bootstrap/scss/navbar"; | ||
@import "bootstrap/scss/transitions"; | ||
@import "bootstrap/scss/helpers"; | ||
|
||
.navbar-collapse { | ||
justify-content: end; | ||
} |
46 changes: 46 additions & 0 deletions
46
src/sections/ui/assets/styles/design-tokens/colors.module.scss
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,46 @@ | ||
// Base colors | ||
$dv-brand-color: #C55B28; | ||
$dv-primary-color: #337AB7; | ||
$dv-secondary-color: #6c757d; | ||
$dv-success-color: #3c763d; | ||
$dv-danger-color: #a94442; | ||
$dv-warning-color: #8a6d3b; | ||
$dv-info-color: #31708f; | ||
$dv-success-box-color: #dff0d8; | ||
$dv-danger-box-color: #f2dede; | ||
$dv-warning-box-color: #fcf8e3; | ||
$dv-info-box-color: #d9edf7; | ||
|
||
// Text colors | ||
$dv-text-color: #333; | ||
$dv-subtext-color: #767676; | ||
|
||
$dv-primary-text-color: white; | ||
$dv-secondary-text-color: $dv-text-color; | ||
|
||
$dv-headings-color: #333; | ||
|
||
// Link colors | ||
$dv-link-color: #3174AF; | ||
$dv-link-hover-color: #23527c; | ||
|
||
:export { | ||
brand: $dv-brand-color; | ||
primary: $dv-primary-color; | ||
secondary: $dv-secondary-color; | ||
textColor: $dv-text-color; | ||
subTextColor: $dv-subtext-color; | ||
primaryTextColor: $dv-primary-text-color; | ||
secondaryTextColor: $dv-secondary-text-color; | ||
headingsColor: $dv-headings-color; | ||
linkColor: $dv-link-color; | ||
linkHoverColor: $dv-link-hover-color; | ||
successColor: $dv-success-color; | ||
dangerColor: $dv-danger-color; | ||
warningColor: $dv-warning-color; | ||
infoColor: $dv-info-color; | ||
successBoxColor: $dv-success-box-color; | ||
dangerBoxColor: $dv-danger-box-color; | ||
warningBoxColor: $dv-warning-box-color; | ||
infoBoxColor: $dv-info-box-color; | ||
} |
22 changes: 22 additions & 0 deletions
22
src/sections/ui/assets/styles/design-tokens/typography.module.scss
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,22 @@ | ||
$dv-font-size: 16px; | ||
$dv-font-size-sm: 12px; | ||
$dv-brand-font-size: 24px; | ||
|
||
$dv-font-family: ("Helvetica Neue",helvetica,arial,sans-serif); | ||
|
||
$dv-font-weight: 400; | ||
$dv-font-weight-light: 300; | ||
$dv-font-weight-bold: 700; | ||
|
||
$dv-line-height: 1.5; | ||
|
||
:export { | ||
fontSize: $dv-font-size; | ||
fontSizeSm: $dv-font-size-sm; | ||
brandFontSize: $dv-brand-font-size; | ||
fontFamily: $dv-font-family; | ||
fontWeight: $dv-font-weight; | ||
fontWeightLight: $dv-font-weight-light; | ||
fontWeightBold: $dv-font-weight-bold; | ||
lineHeight: $dv-line-height; | ||
} |
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,2 @@ | ||
@import "src/sections/ui/assets/styles/fontcustom"; | ||
@import "src/sections/ui/assets/styles/bootstrap-customized"; |
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,11 @@ | ||
import { Badge as BadgeBS } from 'react-bootstrap' | ||
import { ReactNode } from 'react' | ||
|
||
interface BadgeProps { | ||
variant: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | ||
children: ReactNode | ||
} | ||
|
||
export function Badge({ variant, children }: BadgeProps) { | ||
return <BadgeBS bg={variant}>{children}</BadgeBS> | ||
} |
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 was deleted.
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
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/sections/ui/grid/col/Col.tsx → src/sections/ui/grid/Col.tsx
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
1 change: 0 additions & 1 deletion
1
src/sections/ui/grid/container/Container.tsx → src/sections/ui/grid/Container.tsx
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
1 change: 0 additions & 1 deletion
1
src/sections/ui/grid/row/Row.tsx → src/sections/ui/grid/Row.tsx
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.