Turnkey Styling
Line 45: Line 45:
   <p>Use the generic modifier classes with the default buttons to change their style.</p>
   <p>Use the generic modifier classes with the default buttons to change their style.</p>


   <div class="examples">
   <div class="examples buttons">
     <div class="examples__item" title="">
     <div class="examples__item" title="">
       <button class="tk-button__native ripple-effect">Button</button>
       <button class="tk-button__native ripple-effect">Button</button>
Line 78: Line 78:
   <p>Add to style-references "<b>outlined</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "outlined". For example: "outlined danger", "outlined warning", "outlined primary".</p>
   <p>Add to style-references "<b>outlined</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "outlined". For example: "outlined danger", "outlined warning", "outlined primary".</p>


   <div class="examples">
   <div class="examples buttons">
     <div class="examples__item" title="outkined">
     <div class="examples__item" title="outkined">
       <button class="tk-button__native  ripple-effect outlined">Outlined</button>
       <button class="tk-button__native  ripple-effect outlined">Outlined</button>
Line 111: Line 111:
   <p>Add to style-references "<b>flat</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "flat". For example: "flat danger", "flat warning", "flat primary".</p>
   <p>Add to style-references "<b>flat</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "flat". For example: "flat danger", "flat warning", "flat primary".</p>


   <div class="examples">
   <div class="examples buttons">
     <div class="examples__item" title="flat">
     <div class="examples__item" title="flat">
       <button class="tk-button__native  ripple-effect flat">Flat</button>
       <button class="tk-button__native  ripple-effect flat">Flat</button>
Line 144: Line 144:
   <p>Add to style-references "<b>shaped</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "shaped". For example: "shaped danger", "shaped warning", "shaped primary".</p>
   <p>Add to style-references "<b>shaped</b>" in your viewmodel column. Also, you can use generic modifier classes in pair with "shaped". For example: "shaped danger", "shaped warning", "shaped primary".</p>


   <div class="examples">
   <div class="examples buttons">
     <div class="examples__item" title="shaped">
     <div class="examples__item" title="shaped">
       <button class="tk-button__native ripple-effect shaped">Shaped</button>
       <button class="tk-button__native ripple-effect shaped">Shaped</button>

Revision as of 11:03, 19 September 2019


Getting started

MDriven Turnkey Style system based on the BEM methodology. BEM stands for Block, Element, Modifier and it is a convention on how to structure CSS rules. Read more here.

Out of the box you will receive the following UI elements:

  • Static text
  • Image
  • Text field
  • Checkbox
  • Select (Combobox)
  • Date picker
  • Data-table
  • Button
  • File upload
  • Link
  • Textarea
  • Number field
  • Float field

Layout

MDriven Turnkey uses CSS Grid to create the application layout.

Components

Buttons

Out of the box in MDriven Turnkey you have the default button styles, but you can modify it with the predefined Modifier-classes. To style your buttons add the modifier classes to style-reference in your viewmodel column. Find out all predefined modifier classes for the buttons, below.

Generic modifier classes for the buttons:

  • danger
  • warning
  • success
  • info
  • primary (applies primary color of your application)

Default buttons in MDriven Turnkey

Use the generic modifier classes with the default buttons to change their style.

Oulined buttons in MDriven Turnkey. (Style ref: outlined)

Add to style-references "outlined" in your viewmodel column. Also, you can use generic modifier classes in pair with "outlined". For example: "outlined danger", "outlined warning", "outlined primary".

Flat buttons in MDriven Turnkey. (Style ref: flat)

Add to style-references "flat" in your viewmodel column. Also, you can use generic modifier classes in pair with "flat". For example: "flat danger", "flat warning", "flat primary".

Shaped buttons in MDriven Turnkey. (Style ref: shaped)

Add to style-references "shaped" in your viewmodel column. Also, you can use generic modifier classes in pair with "shaped". For example: "shaped danger", "shaped warning", "shaped primary".


Static text

This page was edited 35 days ago on 03/26/2024. What links here