Skip to content

Latest commit

 

History

History
78 lines (60 loc) · 1.62 KB

03-styling.md

File metadata and controls

78 lines (60 loc) · 1.62 KB

Styling

Styling of your app can be found in src/elements/shared-styles.html.

Colors

Adjust the color scheme to your conference style.

:host {
  /* Primary colors */
  --dark-primary-color: #f57c00;
  --default-primary-color: #ff9800;
  --light-primary-color: #ffe0b2;
  --text-primary-color: #212121; /* text / icons */

  /* Accent colors */
  --accent-color: #03a9f4;

  /* Background colors */
  --primary-background-color: #ffe0b2;

  /* Text colors */
  --primary-text-color: #212121;
  --secondary-text-color: #727272;
  --disabled-text-color: #bdbdbd;

  /* Other colors */
  --divider-color: #b6b6b6;
}

Tip: Choose base colors with Material Palette material_design_palette_generator

Hero

Color and images for header can be configured via data/settings.json in heroSettings object:

"heroSettings": {
  "home": {
    "description": "Join the commuity, learn new things!",
    "background": {
      "color": "#673ab7",
      "image": "/images/backgrounds/home.jpg"
    },
    "fontColor": "#FFF"
  },
  "blog": {
    "title": "Blog",
    "metaDescription": "Read stories from our team",
    "background": {
      "color": "#FFF"
    },
    "fontColor": "#424242"
  },
  ...
 }

Web app

Edit Web app colors via webapp in data/settings.json

"webapp": {
  "shortName": "DevFest",
  "themeColor": "#F57C00",
  "backgroundColor": "#F57C00"
}

Next steps

Learn how to deploy the app to the web.