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

Start adding styleguide to csjs

parent f54f037b
...@@ -71,9 +71,10 @@ function styleGuide () { ...@@ -71,9 +71,10 @@ function styleGuide () {
/******************************************************** /********************************************************
BACKGROUND COLORS BACKGROUND COLORS
******************************************************** */ ******************************************************** */
primary_BackgroundColor: css_properties.colors.white, primary_BackgroundColor: css_properties.colors.red,
secondary_BackgroundColor: css_properties.colors.backgroundBlue, secondary_BackgroundColor: css_properties.colors.blue,
dark_BackgroundColor: css_properties.colors.veryLightGrey, dark_BackgroundColor: css_properties.colors.veryLightGrey,
light_BackgroundColor: css_properties.colors.white,
/******************************************************** /********************************************************
RESIZING RESIZING
...@@ -117,7 +118,7 @@ function styleGuide () { ...@@ -117,7 +118,7 @@ function styleGuide () {
DROPDOWN DROPDOWN
******************************************************** */ ******************************************************** */
dropdown_TextColor: css_properties.colors.black, dropdown_TextColor: css_properties.colors.black,
dropdown_BackgroundColor: css_properties.colors.white, dropdown_BackgroundColor: css_properties.colors.violet,
dropdown_BorderColor: css_properties.colors.veryLightGrey, dropdown_BorderColor: css_properties.colors.veryLightGrey,
/******************************************************** /********************************************************
...@@ -219,7 +220,7 @@ function styleGuide () { ...@@ -219,7 +220,7 @@ function styleGuide () {
`, `,
dottedBorderBox: (opts = {}) => ` dottedBorderBox: (opts = {}) => `
background-color : ${opts.BackgroundColor}}; background-color : ${opts.BackgroundColor};
border : .2em dotted ${opts.BorderColor}; border : .2em dotted ${opts.BorderColor};
color : ${opts.Color}; color : ${opts.Color};
border-radius : ${css_properties.borders.secondary_borderRadius}; border-radius : ${css_properties.borders.secondary_borderRadius};
...@@ -230,9 +231,9 @@ function styleGuide () { ...@@ -230,9 +231,9 @@ function styleGuide () {
word-break : break-word; word-break : break-word;
`, `,
inputField: (opts = {}) =>` inputField: (opts = {}) => `
background-color : ${opts.BackgroundColor}}; background-color : ${opts.BackgroundColor};
border : .2em dotted ${opts.BorderColor}; border : 1px solid ${opts.BorderColor};
color : ${opts.Color}; color : ${opts.Color};
border-radius : ${css_properties.borders.secondary_borderRadius}; border-radius : ${css_properties.borders.secondary_borderRadius};
height : 25px; height : 25px;
...@@ -243,7 +244,7 @@ function styleGuide () { ...@@ -243,7 +244,7 @@ function styleGuide () {
`, `,
dropdown: (opts = {}) => ` dropdown: (opts = {}) => `
background-color : ${opts.BackgroundColor}}; background-color : ${opts.BackgroundColor};
border : 1px solid ${opts.BorderColor}; border : 1px solid ${opts.BorderColor};
color : ${opts.Color}; color : ${opts.Color};
font-size : 12px; font-size : 12px;
...@@ -321,10 +322,12 @@ var remix_properties = { ...@@ -321,10 +322,12 @@ var remix_properties = {
editor: { editor: {
backgroundColor_Panel: app_properties.primary_BackgroundColor, backgroundColor_Panel: app_properties.primary_BackgroundColor,
backgroundColor_Editor: app_properties.light_BackgroundColor,
backgroundColor_Tabs_Highlights: app_properties.secondary_BackgroundColor, backgroundColor_Tabs_Highlights: app_properties.secondary_BackgroundColor,
backgroundColor_DebuggerMode: app_properties.secondary_BackgroundColor, backgroundColor_DebuggerMode: app_properties.warning_BackgroundColor,
text_Primary: app_properties.mainText_Color, text_Primary: app_properties.mainText_Color,
text_Secondary: app_properties.supportText_Color,
text_Editor: '', text_Editor: '',
icon_Color_Editor: app_properties.icon_Color, icon_Color_Editor: app_properties.icon_Color,
...@@ -694,11 +697,14 @@ var elementColors = { ...@@ -694,11 +697,14 @@ var elementColors = {
return { return {
colors: css_properties.colors, colors: css_properties.colors,
borders: css_properties.borders,
leftPanel: remix_properties.leftPanel, leftPanel: remix_properties.leftPanel,
editor: remix_properties.editor, editor: remix_properties.editor,
terminal: remix_properties.terminal, terminal: remix_properties.terminal,
rightPanel: remix_properties.rightPanel, rightPanel: remix_properties.rightPanel,
app_properties: app_properties,
elementColors: elementColors, elementColors: elementColors,
dropdown: uiElements['dropdown'], dropdown: uiElements['dropdown'],
button: uiElements['button'], button: uiElements['button'],
......
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