Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
74c7ed8f
Commit
74c7ed8f
authored
Oct 25, 2017
by
Rob Stupay
Committed by
yann300
Dec 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update style-guide for Metropolis theme
parent
810b28f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
31 deletions
+79
-31
.gitignore
.gitignore
+2
-0
style-guide.js
remix-lib/src/ui/style-guide.js
+77
-31
No files found.
.gitignore
View file @
74c7ed8f
...
...
@@ -7,3 +7,4 @@ test-browser/reports/*
babelify-src
docs/_build
package-lock.json
.DS_Store
\ No newline at end of file
remix-lib/src/ui/style-guide.js
View file @
74c7ed8f
...
...
@@ -15,30 +15,47 @@ function styleGuide () {
colors
:
{
// BASIC COLORS (B&W and transparent)
transparent
:
'transparent'
,
white
:
'hsl
(0, 0%, 100%
)'
,
black
:
'hsl
(0, 0%, 0%
)'
,
opacityBlack
:
'hsla(0, 0%, 0%, .4)'
,
white
:
'hsl
a(198, 100%, 97%, 1
)'
,
black
:
'hsl
a(240, 100%, 6%, 1
)'
,
// BLUE
blue
:
'hsla(229, 75%, 87%, 1)'
,
lightBlue
:
'hsla(229, 75%, 87%, .5)'
,
backgroundBlue
:
'hsla(229, 100%, 97%, 1)'
,
blue
:
'hsla(233, 91%, 36%, 1)'
,
lightBlue
:
'hsla(202, 91%, 75%, 1)'
,
blueLightTrans
:
'hsla(202, 91%, 75%, .4)'
,
backgroundBlue
:
'hsla(240, 100%, 21%, 1)'
,
blueBlack
:
'hsla(205, 13%, 18%, 1)'
,
// erase blueBlack ??
brightBlue
:
'hsla(233, 91%, 58%, 1)'
,
blueGreyEve
:
'hsla(213, 64%, 65%, 1)'
,
bluePruneEve
:
'hsla(232, 30%, 20%, 1)'
,
blueBerrySmog
:
'hsla(286, 15%, 22%, 1)'
,
blueBlur
:
'hsla(232, 30%, 20%, 0.7)'
,
blueMascara
:
'hsla(187, 100%, 51%, 1)'
,
blueMorningGlory
:
'hsla(213, 74%, 80%, 1)'
,
blueFairyDust
:
'hsla(181, 83%, 86%, 1)'
,
// GREY
grey
:
'hsla(0, 0%, 40%, 1)'
,
blueGrey
:
'hsla(206, 24%, 58%, .8)'
,
greyBlueNight
:
'hsla(215, 55%, 18%, 1)'
,
greyBlueLight
:
'hsla(213, 15%, 58%, 1)'
,
greyBlueMed
:
'hsla(215, 55%, 28%, 1)'
,
lightGrey
:
'hsla(0, 0%, 40%, .5)'
,
veryLightGrey
:
'hsla(0, 0%, 40%, .2)'
,
desatGrey
:
'hsla(173, 17%, 79%, 1)'
,
// RED
strongRed
:
'hsla(0, 100%, 71%, 1)'
,
red
:
'hsla(0, 82%, 82%, 1)'
,
lightRed
:
'hsla(0, 82%, 82%, .
5
)'
,
lightRed
:
'hsla(0, 82%, 82%, .
8
)'
,
// GREEN
green
:
'hsla(141, 75%, 84%, 1)'
,
lightGreen
:
'hsla(141, 75%, 84%, .5)'
,
// PINK
pink
:
'hsla(300, 69%, 76%, 1)'
,
lightPink
:
'hsla(
300, 69%, 76%, .5
)'
,
lightPink
:
'hsla(
286, 71%, 88%, 1
)'
,
// YELLOW
orange
:
'hsla(
44, 100
%, 50%, 1)'
,
lightOrange
:
'hsla(
44, 100
%, 50%, .5)'
,
orange
:
'hsla(
39, 87
%, 50%, 1)'
,
lightOrange
:
'hsla(
39, 87
%, 50%, .5)'
,
// VIOLET
violet
:
'hsla(240, 64%, 68%, 1)'
,
lightViolet
:
'hsla(240, 64%, 68%, .5)'
...
...
@@ -70,29 +87,39 @@ function styleGuide () {
/* ------------------------------------------------------
BACKGROUND COLORS
------------------------------------------------------ */
primary_BackgroundColor
:
cssProperties
.
colors
.
white
,
primary_BackgroundColor
:
cssProperties
.
colors
.
black
,
secondary_BackgroundColor
:
cssProperties
.
colors
.
backgroundBlue
,
dark_BackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
tertiary_BackgroundColor
:
cssProperties
.
colors
.
greyBlueNight
,
quaternary_BackgroundColor
:
cssProperties
.
colors
.
blueGreyEve
,
quinary_BackgroundColor
:
cssProperties
.
colors
.
greyBlueMed
,
senary_BackgroundColor
:
cssProperties
.
colors
.
blueBerrySmog
,
seventh_BackgroundColor
:
cssProperties
.
colors
.
blueBlur
,
dark_BackgroundColor
:
cssProperties
.
colors
.
black
,
light_BackgroundColor
:
cssProperties
.
colors
.
white
,
debuggingMode_BackgroundColor
:
cssProperties
.
colors
.
lightViolet
,
/* ------------------------------------------------------
RESIZING
******************************************************** */
ghostBar
:
cssProperties
.
colors
.
lightBlue
,
draggingBar
:
cssProperties
.
colors
.
lightBlu
e
,
ghostBar
:
cssProperties
.
colors
.
blueLightTrans
,
draggingBar
:
cssProperties
.
colors
.
blueGreyEv
e
,
/* ------------------------------------------------------
TEXT COLORS
******************************************************** */
mainText_Color
:
cssProperties
.
colors
.
black
,
supportText_Color
:
cssProperties
.
colors
.
grey
,
mainText_Color
:
cssProperties
.
colors
.
white
,
supportText_Color
:
cssProperties
.
colors
.
lightBlue
,
supportText_OppositeColor
:
cssProperties
.
colors
.
lightBlue
,
// remove supportText_Opposite ???
sub_supportText_Color
:
cssProperties
.
colors
.
greyBlueLight
,
errorText_Color
:
cssProperties
.
colors
.
strongRed
,
warningText_Color
:
cssProperties
.
colors
.
orange
,
infoText_Color
:
cssProperties
.
colors
.
violet
,
/* ------------------------------------------------------
ICONS
******************************************************** */
icon_Color
:
cssProperties
.
colors
.
black
,
icon_Color
:
cssProperties
.
colors
.
white
,
icon_AltColor
:
cssProperties
.
colors
.
black
,
icon_HoverColor
:
cssProperties
.
colors
.
orange
,
/* ------------------------------------------------------
...
...
@@ -109,8 +136,8 @@ function styleGuide () {
danger_BorderColor
:
cssProperties
.
colors
.
red
,
// Warning
warning_TextColor
:
cssProperties
.
colors
.
black
,
warning_BackgroundColor
:
cssProperties
.
colors
.
lightOrang
e
,
warning_TextColor
:
cssProperties
.
colors
.
desatGrey
,
warning_BackgroundColor
:
cssProperties
.
colors
.
blu
e
,
warning_BorderColor
:
cssProperties
.
colors
.
orange
,
// Tooltip
...
...
@@ -123,6 +150,7 @@ function styleGuide () {
******************************************************** */
dropdown_TextColor
:
cssProperties
.
colors
.
black
,
dropdown_BackgroundColor
:
cssProperties
.
colors
.
white
,
dropdown_SecondaryBackgroundColor
:
cssProperties
.
colors
.
blueMorningGlory
,
dropdown_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* ------------------------------------------------------
...
...
@@ -136,8 +164,8 @@ function styleGuide () {
SOLID BORDER BOX
******************************************************** */
solidBorderBox_TextColor
:
cssProperties
.
colors
.
black
,
solidBorderBox_BackgroundColor
:
cssProperties
.
colors
.
whit
e
,
solidBorderBox_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
solidBorderBox_BackgroundColor
:
cssProperties
.
colors
.
blueGreyEv
e
,
solidBorderBox_BorderColor
:
cssProperties
.
colors
.
backgroundBlue
,
/* ------------------------------------------------------
BUTTONS
...
...
@@ -154,10 +182,16 @@ function styleGuide () {
SECONDARY
.................. */
secondaryButton_TextColor
:
cssProperties
.
colors
.
black
,
secondaryButton_BackgroundColor
:
cssProperties
.
colors
.
veryLightGrey
,
secondaryButton_BackgroundColor
:
cssProperties
.
colors
.
lightBlue
,
secondaryButton_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* .................
Teriary
.................. */
teriaryButton_TextColor
:
cssProperties
.
colors
.
black
,
teriaryButton_BackgroundColor
:
cssProperties
.
colors
.
greyBlueMed
,
teriaryButton_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* .................
SUCCESS
.................. */
successButton_TextColor
:
cssProperties
.
colors
.
white
,
...
...
@@ -181,8 +215,8 @@ function styleGuide () {
/* .................
INFO
.................. */
infoButton_TextColor
:
cssProperties
.
colors
.
violet
,
infoButton_BackgroundColor
:
cssProperties
.
colors
.
white
,
infoButton_TextColor
:
cssProperties
.
colors
.
black
,
infoButton_BackgroundColor
:
cssProperties
.
colors
.
lightPink
,
infoButton_BorderColor
:
cssProperties
.
colors
.
veryLightGrey
,
/* .................
...
...
@@ -196,7 +230,7 @@ function styleGuide () {
// TRANSACTION
transactButton_TextColor
:
cssProperties
.
colors
.
black
,
transactButton_BackgroundColor
:
cssProperties
.
colors
.
lightRed
,
transactButton_BackgroundColor
:
cssProperties
.
colors
.
orange
,
transactButton_BorderColor
:
cssProperties
.
colors
.
lightRed
,
// PAYABLE TRANSACTION
...
...
@@ -316,10 +350,11 @@ function styleGuide () {
/* ------------------------------------------------------ */
leftPanel
:
{
backgroundColor_Panel
:
appProperties
.
primary_BackgroundColor
,
backgroundColor_FileExplorer
:
appProperties
.
second
ary_BackgroundColor
,
backgroundColor_FileExplorer
:
appProperties
.
terti
ary_BackgroundColor
,
text_Primary
:
appProperties
.
mainText_Color
,
text_Secondary
:
appProperties
.
supportText_Color
,
text_Teriary
:
appProperties
.
sub_supportText_Color
,
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
...
...
@@ -343,8 +378,9 @@ function styleGuide () {
backgroundColor_Editor_Context_Error_Highlights
:
appProperties
.
error_BackgroundColor
,
backgroundColor_DebuggerMode
:
appProperties
.
debuggingMode_BackgroundColor
,
text_Primary
:
appProperties
.
mainText_
Color
,
text_Primary
:
appProperties
.
supportText_Opposite
Color
,
text_Secondary
:
appProperties
.
supportText_Color
,
text_Teriary
:
appProperties
.
sub_supportText_Color
,
text_Editor
:
''
,
icon_Color_Editor
:
appProperties
.
icon_Color
,
...
...
@@ -357,7 +393,8 @@ function styleGuide () {
/* ------------------------------------------------------ */
terminal
:
{
backgroundColor_Menu
:
appProperties
.
secondary_BackgroundColor
,
backgroundColor_Terminal
:
appProperties
.
dark_BackgroundColor
,
backgroundColor_Terminal
:
appProperties
.
senary_BackgroundColor
,
backgroundColor_TerminalCLI
:
appProperties
.
seventh_BackgroundColor
,
text_Primary
:
appProperties
.
mainText_Color
,
text_Secondary
:
appProperties
.
supportText_Color
,
...
...
@@ -406,7 +443,7 @@ function styleGuide () {
/* ------------------------------------------------------ */
rightPanel
:
{
backgroundColor_Panel
:
appProperties
.
primary_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
second
ary_BackgroundColor
,
backgroundColor_Tab
:
appProperties
.
quin
ary_BackgroundColor
,
BackgroundColor_Pre
:
appProperties
.
light_BackgroundColor
,
text_Primary
:
appProperties
.
mainText_Color
,
...
...
@@ -483,6 +520,11 @@ function styleGuide () {
BorderColor
:
appProperties
.
dropdown_BorderColor
,
Color
:
appProperties
.
dropdown_TextColor
}),
titlebox_RunTab
:
appProperties
.
uiElements
.
dropdown
({
BackgroundColor
:
appProperties
.
dropdown_SecondaryBackgroundColor
,
BorderColor
:
appProperties
.
dropdown_BorderColor
,
Color
:
appProperties
.
dropdown_TextColor
}),
input_RunTab
:
appProperties
.
uiElements
.
inputField
({
BackgroundColor
:
appProperties
.
input_BackgroundColor
,
...
...
@@ -524,7 +566,11 @@ function styleGuide () {
BackgroundColor
:
appProperties
.
transactPayableButton_BackgroundColor
,
BorderColor
:
appProperties
.
transactPayableButton_BorderColor
,
Color
:
appProperties
.
transactPayableButton_TextColor
})
}),
icon_Color_Instance_CopyToClipboard
:
appProperties
.
icon_Color
,
icon_AltColor_Instance_CopyToClipboard
:
appProperties
.
icon_AltColor
,
icon_HoverColor_Instance_CopyToClipboard
:
appProperties
.
icon_HoverColor
},
...
...
@@ -560,7 +606,7 @@ function styleGuide () {
}),
button_Debugger
:
appProperties
.
uiElements
.
button
({
BackgroundColor
:
appProperties
.
second
aryButton_BackgroundColor
,
BackgroundColor
:
appProperties
.
teri
aryButton_BackgroundColor
,
BorderColor
:
appProperties
.
secondaryButton_BorderColor
,
Color
:
appProperties
.
secondaryButton_TextColor
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment