-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add style variables and mixins (#5)
* Create color constants and use them in project 1 * Add basic mixins and use theme constants in UI components * Restyled by whitespace (#6) Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Rohan Gupta <rohan.gupta@gameskraft.com> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
96f244b
commit 227c096
Showing
8 changed files
with
131 additions
and
76 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 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,15 @@ | ||
@import '../../../constants/theme.scss'; | ||
|
||
.button { | ||
background-color: transparent; | ||
padding: 0.75rem 1rem; | ||
border-radius: 0.25rem; | ||
border: 1px solid white; | ||
color: white; | ||
border: 1px solid $white; | ||
color: $white; | ||
text-transform: uppercase; | ||
letter-spacing: 0.5px; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
} |
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,11 +1,13 @@ | ||
@import '../../../constants/theme.scss'; | ||
|
||
.input { | ||
background-color: transparent; | ||
border-radius: 0.25rem; | ||
border: 1px solid rgba(255, 255, 255, 0.7); | ||
border: 1px solid rgba($color: $white, $alpha: 0.7); | ||
padding: 0.5rem 0.75rem; | ||
color: white; | ||
color: $white; | ||
} | ||
|
||
.fullWidth { | ||
width: 100%; | ||
} | ||
} |
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,16 +1,18 @@ | ||
@import '../../../constants/theme.scss'; | ||
|
||
.label { | ||
display: block; | ||
margin: 0.25rem 0; | ||
color: white; | ||
color: $white; | ||
font-size: 0.8rem; | ||
font-weight: 400; | ||
letter-spacing: 0.25px; | ||
|
||
@media screen and (min-width: 992px) { | ||
font-size: 0.9rem; | ||
} | ||
|
||
@media screen and (min-width: 1200px) { | ||
font-size: 1rem; | ||
} | ||
} | ||
} |
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,8 @@ | ||
$black: #000000; | ||
$white: #FFFFFF; | ||
$dark: #0D0E0E; | ||
|
||
// Project 1 | ||
$project-bg-1: linear-gradient(50deg, #051A30 0%, #111012 100%); | ||
$project-header-1: #FE9226; | ||
$project-highlight-1: #FF929B; |
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,5 @@ | ||
export const COLORS: { [key: string]: string } = { | ||
BLACK: '#000000', | ||
WHITE: '#FFFFFF', | ||
DARK: '#0D0E0E', | ||
}; |
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,21 @@ | ||
@mixin spacing ($padding: 0, $margin: 0) { | ||
padding: $padding; | ||
margin: $margin; | ||
} | ||
|
||
@mixin square ($size, $bg: none, $borderRadius: 0) { | ||
height: $size; | ||
width: $size; | ||
|
||
@if $bg != none { | ||
background: $bg; | ||
} | ||
|
||
@if $borderRadius != 0 { | ||
border-radius: $borderRadius; | ||
} | ||
} | ||
|
||
@mixin circle ($size, $bg) { | ||
@include square($size, $bg, 50%); | ||
} |