Commit c9ba4b5a authored by ninabreznik's avatar ninabreznik Committed by yann300

Update style guide - add app_properties to remix_properties

parent 41d48896
...@@ -67,51 +67,128 @@ function styleGuide () { ...@@ -67,51 +67,128 @@ function styleGuide () {
var app_properties = { var app_properties = {
// BACKGROUND COLORS /****************************
general_BackgroundColor: css_properties.colors.white, BACKGROUND COLORS
support_BackgroundColor: css_properties.colors.backgroundBlue, ************************** */
primary_BackgroundColor: css_properties.colors.white,
// TEXT COLORS secondary_BackgroundColor: css_properties.colors.backgroundBlue,
dark_BackgroundColor: css_properties.colors.veryLightGrey,
/****************************
TEXT COLORS
************************** */
mainText_Color: css_properties.colors.black, mainText_Color: css_properties.colors.black,
supportText_Color: css_properties.colors.grey, supportText_Color: css_properties.colors.grey,
errorText_Color: css_properties.colors.red,
// ICONS warningText_Color: css_properties.colors.orange,
/****************************
ICONS
************************** */
icon_Color: css_properties.colors.black, icon_Color: css_properties.colors.black,
icon_HoverColor: css_properties.colors.orange, icon_HoverColor: css_properties.colors.orange,
// UI ELEMENTS (dropdown, input) /****************************
element_TextColor: css_properties.colors.black, MESSAGES
element_BackgroundColor: css_properties.colors.white, ************************** */
element_BorderColor: css_properties.colors.veryLightGrey, // success
success_TextColor: css_properties.colors.black,
success_BackgroundColor: css_properties.colors.lightGreen,
success_BorderColor: css_properties.colors.green,
// DROPDOWN // danger
danger_TextColor: css_properties.colors.black,
danger_BackgroundColor: css_properties.colors.lightRed,
danger_BorderColor: css_properties.colors.red,
// warning
warning_TextColor: css_properties.colors.black,
warning_BackgroundColor: css_properties.colors.lightOrange,
warning_BorderColor: css_properties.colors.orange,
/****************************
DROPDOWN
************************** */
dropdown_TextColor: css_properties.colors.black, dropdown_TextColor: css_properties.colors.black,
dropdown_BackgroundColor: css_properties.colors.white, dropdown_BackgroundColor: css_properties.colors.white,
dropdown_BorderColor: css_properties.colors.veryLightGrey, dropdown_BorderColor: css_properties.colors.veryLightGrey,
// INPUT /****************************
INPUT
************************** */
input_TextColor: css_properties.colors.black, input_TextColor: css_properties.colors.black,
input_BackgroundColor: css_properties.colors.white, input_BackgroundColor: css_properties.colors.white,
input_BorderColor: css_properties.colors.veryLightGrey, input_BorderColor: css_properties.colors.veryLightGrey,
// INFO BOX /****************************
INFO BOX
************************** */
infoBox_TextColor: css_properties.colors.black, infoBox_TextColor: css_properties.colors.black,
infoBox_BackgroundColor: css_properties.colors.white, infoBox_BackgroundColor: css_properties.colors.white,
infoBox_BorderColor: css_properties.colors.veryLightGrey, infoBox_BorderColor: css_properties.colors.veryLightGrey,
// BUTTONS /****************************
// Compile Tab (Right panel) BUTTONS
compileButton_TextColor: css_properties.colors.black, ************************** */
compileButton_BackgroundColor: css_properties.colors.veryLightGrey,
compileButton_BorderColor: css_properties.colors.veryLightGrey,
detailsButton_TextColor: css_properties.colors.black,
detailsButton_BackgroundColor: css_properties.colors.veryLightGrey,
detailsButton_BorderColor: css_properties.colors.veryLightGrey,
publishButton_TextColor: css_properties.colors.black, /* .................
publishButton_BackgroundColor: css_properties.colors.veryLightGrey, PRIMARY
publishButton_BorderColor: css_properties.colors.veryLightGrey, .................. */
primaryButton_TextColor: css_properties.colors.white,
primaryButton_BackgroundColor: css_properties.colors.blue,
primaryButton_BorderColor: css_properties.colors.blue,
/* .................
SECONDARY
.................. */
secondaryButton_TextColor: css_properties.colors.black,
secondaryButton_BackgroundColor: css_properties.colors.lightGrey,
secondaryButton_BorderColor: css_properties.colors.lightGrey,
/* .................
SUCCESS
.................. */
successButton_TextColor: css_properties.colors.white,
successButton_BackgroundColor: css_properties.colors.green,
successButton_BorderColor: css_properties.colors.green,
/* .................
DANGER
.................. */
dangerButton_TextColor: css_properties.colors.white,
dangerButton_BackgroundColor: css_properties.colors.red,
dangerButton_BorderColor: css_properties.colors.red,
/* .................
WARNING
.................. */
warningButton_TextColor: css_properties.colors.white,
warningButton_BackgroundColor: css_properties.colors.orange,
warningButton_BorderColor: css_properties.colors.orange,
/* .................
INFO
.................. */
infoButton_TextColor: css_properties.colors.black,
infoButton_BackgroundColor: css_properties.colors.white,
infoButton_BorderColor: css_properties.colors.veryLightGrey,
/* .................
SOLIDITY
.................. */
// CALL
callButton_TextColor: css_properties.colors.black,
callButton_BackgroundColor: css_properties.colors.white,
callButton_BorderColor: css_properties.colors.blue,
// TRANSACTION
transactButton_TextColor: css_properties.colors.black,
transactButton_BackgroundColor: css_properties.colors.white,
transactButton_BorderColor: css_properties.colors.pink,
// PAYABLE TRANSACTION
transactPayableButton_TextColor: css_properties.colors.black,
transactPayableButton_BackgroundColor: css_properties.colors.white,
transactPayableButton_BorderColor: css_properties.colors.violet,
// Run Tab (Right panel) // Run Tab (Right panel)
atAddressButton_TextColor: css_properties.colors.black, atAddressButton_TextColor: css_properties.colors.black,
...@@ -122,23 +199,6 @@ function styleGuide () { ...@@ -122,23 +199,6 @@ function styleGuide () {
createButton_BackgroundColor: css_properties.colors.lightRed, createButton_BackgroundColor: css_properties.colors.lightRed,
createButton_BorderColor: css_properties.colors.lightRed, createButton_BorderColor: css_properties.colors.lightRed,
instance_callButton_TextColor: css_properties.colors.black ,
instance_callButton_BackgroundColor: css_properties.colors.lightBlue,
instance_callButton_BorderColor: css_properties.colors.lightBlue,
instance_transactButton_TextColor: css_properties.colors.black,
instance_transactButton_BackgroundColor: css_properties.colors.lightRed,
instance_transactButton_BorderColor: css_properties.colors.lightRed,
instance_transactPayableButton_TextColor: css_properties.colors.black,
instance_transactPayableButton_BackgroundColor: css_properties.colors.red,
instance_transactPayableButton_BorderColor: css_properties.colors.red,
// Debugger Tab (Right panel)
debuggerButton_TextColor: css_properties.colors.black,
debuggerButton_BackgroundColor: css_properties.colors.veryLightGrey,
debuggerButton_BorderColor: css_properties.colors.veryLightGrey,
// Analysis Tab (Right panel) // Analysis Tab (Right panel)
runButton_TextColor: css_properties.colors.black, runButton_TextColor: css_properties.colors.black,
runButton_BackgroundColor: css_properties.colors.veryLightGrey, runButton_BackgroundColor: css_properties.colors.veryLightGrey,
...@@ -168,8 +228,8 @@ var remix_properties = { ...@@ -168,8 +228,8 @@ var remix_properties = {
color: app_properties.supportText_Color color: app_properties.supportText_Color
} }
}, },
general_BackgroundColor: app_properties.general_BackgroundColor, primary_BackgroundColor: app_properties.primary_BackgroundColor,
support_BackgroundColor: app_properties.support_BackgroundColor, secondary_BackgroundColor: app_properties.secondary_BackgroundColor,
dropdown: { dropdown: {
background: app_properties.dropdown_BackgroundColor, background: app_properties.dropdown_BackgroundColor,
border: app_properties.dropdown_BorderColor, border: app_properties.dropdown_BorderColor,
...@@ -217,7 +277,7 @@ var remix_properties = { ...@@ -217,7 +277,7 @@ var remix_properties = {
treeview: { treeview: {
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
highlightedLine: { highlightedLine: {
background: app_properties.support_BackgroundColor background: app_properties.secondary_BackgroundColor
} }
} }
}, },
...@@ -226,16 +286,16 @@ var remix_properties = { ...@@ -226,16 +286,16 @@ var remix_properties = {
EDITOR EDITOR
************************** */ ************************** */
editor: { editor: {
background: app_properties.general_BackgroundColor, background: app_properties.primary_BackgroundColor,
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
gutter: { gutter: {
background: app_properties.support_BackgroundColor, background: app_properties.secondary_BackgroundColor,
highlightedNumber: { highlightedNumber: {
background: app_properties.support_BackgroundColor // support_BackgroundColor background: app_properties.secondary_BackgroundColor // secondary_BackgroundColor
}, },
}, },
navTabs: { navTabs: {
background: app_properties.support_BackgroundColor, background: app_properties.secondary_BackgroundColor,
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
}, },
icons: { icons: {
...@@ -246,11 +306,11 @@ var remix_properties = { ...@@ -246,11 +306,11 @@ var remix_properties = {
}, },
code: { code: {
highlightedLine: { highlightedLine: {
background: app_properties.support_BackgroundColor //support_BackgroundColor background: app_properties.secondary_BackgroundColor //secondary_BackgroundColor
}, },
debuggerMode: { debuggerMode: {
highlightedArea: { highlightedArea: {
background: app_properties.support_BackgroundColor // same as Debug button in Terminal window background: app_properties.secondary_BackgroundColor // same as Debug button in Terminal window
} }
} }
} }
...@@ -261,7 +321,7 @@ var remix_properties = { ...@@ -261,7 +321,7 @@ var remix_properties = {
************************** */ ************************** */
terminal: { terminal: {
menu: { menu: {
background: app_properties.support_BackgroundColor, background: app_properties.secondary_BackgroundColor,
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
icons: { icons: {
color: app_properties.icon_Color, color: app_properties.icon_Color,
...@@ -282,31 +342,32 @@ var remix_properties = { ...@@ -282,31 +342,32 @@ var remix_properties = {
}, },
}, },
terminalWindow: { terminalWindow: {
background: css_properties.colors.veryLightGrey, background: app_properties.dark_BackgroundColor,
color: '',
logo: { logo: {
'url': '', url: '',
}, },
infoLog: { infoLog: {
'color': '' // fonts/color color: app_properties.mainText_Color,
}, },
errorLog: { errorLog: {
'color': '' // same as border in errorMessage in rightPanel/compileTab @TODO color: app_properties.errorText_Color,
}, },
transactionLog: { transactionLog: {
title: { title: {
'color': '' color: app_properties.warningText_Color,
}, },
text: { text: {
'color': '' color: app_properties.supportText_Color,
}, },
detailsButton: { detailsButton: {
'background-color': '', background: app_properties.secondaryButton_BackgroundColor,
'color': '' border: app_properties.secondaryButton_BorderColor,
color: app_properties.secondaryButton_TextColor
}, },
debugButton: { debugButton: {
background: app_properties.support_BackgroundColor, background: app_properties.warningButton_BackgroundColor,
'color': '' border: app_properties.warningButton_BorderColor,
color: app_properties.warningButton_TextColor
} }
} }
} }
...@@ -316,7 +377,7 @@ var remix_properties = { ...@@ -316,7 +377,7 @@ var remix_properties = {
RIGHT PANEL RIGHT PANEL
************************** */ ************************** */
rightPanel: { rightPanel: {
background: app_properties.general_BackgroundColor, background: app_properties.primary_BackgroundColor,
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
textBox: { textBox: {
background: app_properties.infoBox_BackgroundColor, background: app_properties.infoBox_BackgroundColor,
...@@ -335,22 +396,22 @@ var remix_properties = { ...@@ -335,22 +396,22 @@ var remix_properties = {
} }
}, },
logo: { logo: {
'url': '' url: ''
}, },
warningMessage: { warningMessage: {
'border': '', background: app_properties.warning_BackgroundColor,
'background-color': '', border: app_properties.warning_BorderColor,
'color': '' color: app_properties.warning_TextColor
}, },
errorMessage: { errorMessage: {
'border': '', // same as font color in terminal error @TODO background: app_properties.danger_BackgroundColor,
'background-color': '', border: app_properties.danger_BorderColor,
'color': '' color: app_properties.danger_TextColor
}, },
successMessage: { successMessage: {
'border': '', background: app_properties.success_BackgroundColor,
'background-color': '', border: app_properties.success_BorderColor,
'color': '' color: app_properties.success_TextColor
}, },
dropdown: { dropdown: {
background: app_properties.dropdown_BackgroundColor, background: app_properties.dropdown_BackgroundColor,
...@@ -365,24 +426,24 @@ var remix_properties = { ...@@ -365,24 +426,24 @@ var remix_properties = {
compileTab: { compileTab: {
compileButton: { compileButton: {
background: app_properties.compileButton_BackgroundColor, background: app_properties.primaryButton_BackgroundColor,
border: app_properties.compileButton_BorderColor, border: app_properties.primaryButton_BorderColor,
color: app_properties.compileButton_TextColor, color: app_properties.primaryButton_TextColor,
}, },
detailsButton: { detailsButton: {
background: app_properties.detailsButton_BackgroundColor, background: app_properties.secondaryButton_BackgroundColor,
border: app_properties.detailsButton_BorderColor, border: app_properties.secondaryButton_BorderColor,
color: app_properties.detailsButton_TextColor, color: app_properties.secondaryButton_TextColor,
}, },
PublishButton: { PublishButton: {
background: app_properties.publishButton_BackgroundColor, background: app_properties.secondaryButton_BackgroundColor,
border: app_properties.publishButton_BorderColor, border: app_properties.secondaryButton_BorderColor,
color: app_properties.publishButton_TextColor, color: app_properties.secondaryButton_TextColor,
}, },
detailsModalDialog: { detailsModalDialog: {
background: app_properties.general_BackgroundColor, background: app_properties.primary_BackgroundColor,
header: { header: {
background: app_properties.support_BackgroundColor, background: app_properties.secondary_BackgroundColor,
color: app_properties.mainText_Color, color: app_properties.mainText_Color,
}, },
infoTextBox: { // already in rightPanel general theme infoTextBox: { // already in rightPanel general theme
...@@ -419,20 +480,22 @@ var remix_properties = { ...@@ -419,20 +480,22 @@ var remix_properties = {
border: app_properties.createButton_BorderColor, border: app_properties.createButton_BorderColor,
color: app_properties.createButton_TextColor color: app_properties.createButton_TextColor
}, },
instance_callButton: { instanceButtons: {
background: app_properties.instance_callButton_BackgroundColor, callButton: {
border: app_properties.instance_callButton_BorderColor, background: app_properties.callButton_BackgroundColor,
color: app_properties.instance_callButton_TextColor border: app_properties.callButton_BorderColor,
color: app_properties.callButton_TextColor
}, },
instance_transactButton: { transactButton: {
background: app_properties.instance_transactButton_BackgroundColor, background: app_properties.transactButton_BackgroundColor,
border: app_properties.instance_transactButton_BorderColor, border: app_properties.transactButton_BorderColor,
color: app_properties.instance_transactButton_TextColor color: app_properties.transactButton_TextColor
}, },
instance_transactPayableButton: { transactPayableButton: {
background: app_properties.instance_transactPayableButton_BackgroundColor, background: app_properties.transactPayableButton_BackgroundColor,
border: app_properties.instance_transactPayableButton_BorderColor, border: app_properties.transactPayableButton_BorderColor,
color: app_properties.instance_transactPayableButton_TextColor color: app_properties.transactPayableButton_TextColor
}
}, },
copyToClipboard: { copyToClipboard: {
color: app_properties.icon_Color, color: app_properties.icon_Color,
...@@ -452,9 +515,9 @@ var remix_properties = { ...@@ -452,9 +515,9 @@ var remix_properties = {
debuggerTab: { debuggerTab: {
buttons: { buttons: {
debuggerButton_TextColor: css_properties.colors.black, debuggerButton_TextColor: app_properties.secondaryButton_TextColor,
debuggerButton_BackgroundColor: css_properties.colors.veryLightGrey, debuggerButton_BackgroundColor: app_properties.secondaryButton_BackgroundColor,
debuggerButton_BorderColor: css_properties.colors.veryLightGrey, debuggerButton_BorderColor: app_properties.secondaryButton_BorderColor,
icons: { icons: {
color: app_properties.icon_Color, color: app_properties.icon_Color,
hover: { hover: {
...@@ -468,7 +531,7 @@ var remix_properties = { ...@@ -468,7 +531,7 @@ var remix_properties = {
color: app_properties.dropdown_TextColor, color: app_properties.dropdown_TextColor,
instructions: { instructions: {
highlightedKey: { highlightedKey: {
background: app_properties.support_BackgroundColor background: app_properties.secondary_BackgroundColor
} }
}, },
solidityState: { solidityState: {
...@@ -481,9 +544,9 @@ var remix_properties = { ...@@ -481,9 +544,9 @@ var remix_properties = {
analysisTab: { analysisTab: {
buttons: { buttons: {
runButton_TextColor: css_properties.colors.black, runButton_TextColor: app_properties.primaryButton_TextColor,
runButton_BackgroundColor: css_properties.colors.veryLightGrey, runButton_BackgroundColor: app_properties.primaryButton_BackgroundColor,
runButton_BorderColor: css_properties.colors.veryLightGrey runButton_BorderColor: app_properties.primaryButton_BorderColor
}, },
textBox: { // already in rightPanel general theme textBox: { // already in rightPanel general theme
background: app_properties.infoBox_BackgroundColor, background: app_properties.infoBox_BackgroundColor,
...@@ -491,9 +554,9 @@ var remix_properties = { ...@@ -491,9 +554,9 @@ var remix_properties = {
color: app_properties.infoBox_TextColor color: app_properties.infoBox_TextColor
}, },
warningMessage: { // already in rightPanel general theme warningMessage: { // already in rightPanel general theme
'border': '', background: app_properties.warning_BackgroundColor,
'background-color': '', border: app_properties.warning_BorderColor,
'color': '' color: app_properties.warning_TextColor
} }
}, },
...@@ -519,13 +582,13 @@ var elementColors = { ...@@ -519,13 +582,13 @@ var elementColors = {
BUTTONS BUTTONS
----------------------- */ ----------------------- */
// DROPDOWN // DROPDOWN
dropdown_TextColor: app_properties.dropdown_TextColor, dropdown_TextColor: css_properties.colors.black,
dropdown_BackgroundColor: app_properties.dropdown_BackgroundColor, dropdown_BackgroundColor: css_properties.colors.white,
dropdown_BorderColor: app_properties.dropdown_BorderColor, dropdown_BorderColor: css_properties.colors.veryLightGrey,
// BUTTON // BUTTON
button_TextColor: app_properties.element_TextColor, button_TextColor: css_properties.element_TextColor,
button_BorderColor: app_properties.element_BorderColor, button_BorderColor: css_properties.colors.veryLightGrey,
rightPanel_compileTab_compileButton_BackgroundColor: 'hsla(0, 0%, 40%, .2)', rightPanel_compileTab_compileButton_BackgroundColor: 'hsla(0, 0%, 40%, .2)',
rightPanel_compileTab_otherButtons_BackgroundColor: 'hsla(0, 0%, 40%, .2)' rightPanel_compileTab_otherButtons_BackgroundColor: 'hsla(0, 0%, 40%, .2)'
...@@ -591,6 +654,7 @@ var elementColors = { ...@@ -591,6 +654,7 @@ var elementColors = {
var buttons = { var buttons = {
'button': ` 'button': `
margin : 1px;
background-color : ${css_properties.colors.veryLightGrey}; background-color : ${css_properties.colors.veryLightGrey};
border : .3px solid ${css_properties.colors.veryLightGrey}; border : .3px solid ${css_properties.colors.veryLightGrey};
color : ${css_properties.colors.black}; color : ${css_properties.colors.black};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment