Start adding styleguide to csjs

pull/7/head
ninabreznik 7 years ago committed by yann300
parent f54f037b01
commit b7f8f151a5
  1. 24
      src/ui/styles/style-guide.js

@ -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 () {
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 () {
`, `,
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 () {
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 () {
`, `,
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 = {
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 = {
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'],

Loading…
Cancel
Save