Borders

Use border utilities to quickly style the border and border-radius of an element. Great for images, buttons, or any other element.

Border

Add classes to an element to remove all borders or some borders.

          
  <span class="border"></span>
  <span class="border-0"></span>
  <span class="border-top-0"></span>
  <span class="border-right-0"></span>
  <span class="border-bottom-0"></span>
  <span class="border-left-0"></span>
          

Border color

Change the border color using utilities built on our theme colors.

          
  <span class="border border-primary"></span>
  <span class="border border-secondary"></span>
  <span class="border border-success"></span>
  <span class="border border-info"></span>
  <span class="border border-warning"></span>
  <span class="border border-danger"></span>
  <span class="border border-light"></span>
  <span class="border border-dark"></span>
          

Border-radius

Add classes to an element to easily round its corners.

A placeholder image A placeholder image A placeholder image A placeholder image A placeholder image A placeholder image A placeholder image
          
  <img src="..." alt="..." class="rounded">
  <img src="..." alt="..." class="rounded-top">
  <img src="..." alt="..." class="rounded-right">
  <img src="..." alt="..." class="rounded-bottom">
  <img src="..." alt="..." class="rounded-left">
  <img src="..." alt="..." class="rounded-circle">
  <img src="..." alt="..." class="rounded-0">
          

Breakpoints

  • xs:
    0
  • sm:
    576px
  • md:
    768px
  • lg:
    992px
  • xl:
    1200px
  • iPhone Portrait: 320px
  • Galaxy Nexus Portrait: 360px
  • iPhone 6 Portrait: 375px
  • iPhone 6 Plus Portrait: 414px
  • Galaxy Note 3 Portrait: 540px
  • iPhone Landscape: 568px
  • Google Nexus 7 Portrait: 604px
  • Galaxy Nexus Landscape: 640px
  • iPhone 6 Landscape: 667px
  • iPhone 6 Plus Landscape: 738px
  • iPad Portrait: 768px
  • Galaxy Note 3 Landscape: 960px
  • Google Nexus 7 Landscape: 966px
  • iPad Landscape: 1024px
  • 11" MacBook Air: 1366px
  • 13" MacBook Air: 1440px
  • 21.5" iMac: 1980px

To add or change these items, override Bootstrap's $grid-breakpoints inside _variables.scss

See Bootstrap's docs for more.

Colors

To add to these items, add and override colors in _colors.scss:$theme-colors(). See Bootstrap's docs for more.

rgb(46, 51, 68)

primary

Usage:

$theme-colors(primary);

Luminance: 51.1644

rgb(83, 97, 144)

secondary

Usage:

$theme-colors(secondary);

Luminance: 97.417

rgb(82, 144, 139)

success

Usage:

$theme-colors(success);

Luminance: 130.4578

rgb(45, 115, 170)

info

Usage:

$theme-colors(info);

Luminance: 104.089

rgb(195, 187, 74)

warning

Usage:

$theme-colors(warning);

Luminance: 180.5422

rgb(119, 69, 67)

danger

Usage:

$theme-colors(danger);

Luminance: 79.4856

rgb(248, 249, 250)

light

Usage:

$theme-colors(light);

Luminance: 248.8596

rgb(34, 38, 51)

dark

Usage:

$theme-colors(dark);

Luminance: 38.0882

Text Color

Colors can also be used with text classes. _colors.scss:$theme-colors() is again the go-to here. text-white and text-black are available by default.

text-primary: <p class="text-primary">text-primary </p>

text-secondary: <p class="text-secondary">text-secondary </p>

text-success: <p class="text-success">text-success </p>

text-info: <p class="text-info">text-info </p>

text-warning: <p class="text-warning">text-warning </p>

text-danger: <p class="text-danger">text-danger </p>

text-light: <p class="text-light">text-light </p>

text-dark: <p class="text-dark">text-dark </p>

Background Colors

Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes. Background utilities do not set color, so in some cases you’ll want to use .text-* utilities.


bg-primary:
<div class="bg-primary"></div>

bg-secondary:
<div class="bg-secondary"></div>

bg-success:
<div class="bg-success"></div>

bg-info:
<div class="bg-info"></div>

bg-warning:
<div class="bg-warning"></div>

bg-danger:
<div class="bg-danger"></div>

bg-light:
<div class="bg-light"></div>

bg-dark:
<div class="bg-dark"></div>

Spacing

To add to these items, adjust $spacing() in _variables.scss

5px : $spacing(s)
25px : $spacing(m)
50px : $spacing(l)

Tables

Documentation and examples for opt-in styling of tables (given their prevelant use in JavaScript plugins) with Bootstrap.

Examples

Basic

Quickly create a table style with the .table class as <table class="table">.

This caption example was created with <caption></caption>.
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Dark Basic

As easy as adding the table-dark class to the table as <table class="table-dark">!

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Table Head Options

Similar to tables and dark tables, use the modifier classes .thead-light or .thead-dark in your <thead> for a light or dark gray appearance. For example, <thead class="thead-dark"> or <thead class="thead-light">.

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Striped Rows

Use the .table-striped class with basic or dark tables to add zebra-striping to any table. <table class="table table-striped"> or <table class="table table-dark table-striped">

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Bordered table

Add .table-bordered for borders on all sides of the table and cells. Available for both basic and dark tables. <table class="table table-bordered"> or <table class="table table-dark table-bordered">

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Hoverable rows

Add .table-hover to enable a hover state on table rows within a <tbody>. <table class="table table-hover"> or <table class="table table-dark table-hover">

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Small table

Add .table-sm to make tables more compact by cutting cell padding in half. <table class="table table-sm"> or <table class="table table-dark table-sm">

# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum
# First Name Last Name Username
1 Antone Baumbach @eveniet
2 Arne Orn @magnam
3 Delfina Larkin @nostrum

Contextual classes

Use contextual classes to color table rows or individual cells.

Type Row Code Cell Code
primary <tr class="table-primary">...</tr> <td class="table-primary">...</td>
secondary <tr class="table-secondary">...</tr> <td class="table-secondary">...</td>
success <tr class="table-success">...</tr> <td class="table-success">...</td>
info <tr class="table-info">...</tr> <td class="table-info">...</td>
warning <tr class="table-warning">...</tr> <td class="table-warning">...</td>
danger <tr class="table-danger">...</tr> <td class="table-danger">...</td>
light <tr class="table-light">...</tr> <td class="table-light">...</td>
dark <tr class="table-dark">...</tr> <td class="table-dark">...</td>

Regular table background variants are not available with the dark table, however, you may use text or background utilities to achieve similar styles.

Type Row Code Cell Code
primary <tr class="bg-primary">...</tr> <td class="bg-primary">...</td>
secondary <tr class="bg-secondary">...</tr> <td class="bg-secondary">...</td>
success <tr class="bg-success">...</tr> <td class="bg-success">...</td>
info <tr class="bg-info">...</tr> <td class="bg-info">...</td>
warning <tr class="bg-warning">...</tr> <td class="bg-warning">...</td>
danger <tr class="bg-danger">...</tr> <td class="bg-danger">...</td>
light <tr class="bg-light">...</tr> <td class="bg-light">...</td>
dark <tr class="bg-dark">...</tr> <td class="bg-dark">...</td>

Font Families

Font families can be added via _type.scss and imported to this list via styleguide/_scss2json.scss.

Family: $font-family-base

Fonts: Noto Sans JP, -apple-system, BlinkMacSystemFont, Array, Roboto, Array, Arial, sans-serif, Array, Array, Array

            
  .class {
    font-family: $font-family-base;
  }
            

Regular

Qui quibusdam sapiente dolorem veritatis fuga.

Bold

Qui quibusdam sapiente dolorem veritatis fuga.

Italic

Qui quibusdam sapiente dolorem veritatis fuga.

Family: $font-family-monospace

Fonts: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace

            
  .class {
    font-family: $font-family-monospace;
  }
            

Regular

Qui quibusdam sapiente dolorem veritatis fuga.

Bold

Qui quibusdam sapiente dolorem veritatis fuga.

Italic

Qui quibusdam sapiente dolorem veritatis fuga.

Font Sizes

Font sizes can be added via _type.scss and imported to this list via styleguide/_scss2json.scss.

    Sm: 0.875rem

    officia a maiores eius veritatis fuga non

    Lg: 1.25rem

    officia a maiores eius veritatis fuga non

    Base: 1rem

    officia a maiores eius veritatis fuga non

Headings

These are heading styles, including both element and classed version. Use the element version in markup following Accessibility guidelines. Use the class version to match font styling of heading. See WebAim for details.

Header Code

fugiat nihil voluptatem

<h1 contenteditable>h1. fugiat nihil voluptatem</h1>

fugiat nihil voluptatem

<h2 contenteditable>h1. fugiat nihil voluptatem</h2>

fugiat nihil voluptatem

<h3 contenteditable>h1. fugiat nihil voluptatem</h3>

fugiat nihil voluptatem

<h4 contenteditable>h1. fugiat nihil voluptatem</h4>
fugiat nihil voluptatem
<h5 contenteditable>h1. fugiat nihil voluptatem</h5>
fugiat nihil voluptatem
<h6 contenteditable>h1. fugiat nihil voluptatem</h6>

You can use these as either the element or as a class. For example:

Paragraph Code

fugiat nihil voluptatem

<p class="h1">p1. fugiat nihil voluptatem</p>

fugiat nihil voluptatem

<p class="h2">p2. fugiat nihil voluptatem</p>

fugiat nihil voluptatem

<p class="h3">p3. fugiat nihil voluptatem</p>

fugiat nihil voluptatem

<p class="h4">p4. fugiat nihil voluptatem</p>

fugiat nihil voluptatem

<p class="h5">p5. fugiat nihil voluptatem</p>

fugiat nihil voluptatem

<p class="h6">p6. fugiat nihil voluptatem</p>

Display headings

Bootstrap style for larger headlines. For example:

Display Heading Code

maiores atque

<h1 class="display-1">maiores atque</h1>

maiores atque

<h1 class="display-2">maiores atque</h1>

maiores atque

<h1 class="display-3">maiores atque</h1>

maiores atque

<h1 class="display-4">maiores atque</h1>

Text Styles

Lead

A paragraph p class to help text standout. Ut eum autem aperiam debitis iste adipisci nemo dolorem. Adipisci placeat ut voluptatem at laborum.

          
  <p class="lead">
    Qui quibusdam sapiente dolorem veritatis fuga.
  </p>
        

Paragraphs

Paragraph One Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.


Paragraph Two after an hr Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header + Paragraphs

Header 1

Paragraph following an h1Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header 2

Paragraph following an h2Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header 3

Paragraph following an h3Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header 4

Paragraph following an h4Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header 5

Paragraph following an h5Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Header 6

Paragraph following an h6Tenetur consequatur quisquam cum illo eligendi dolores eaque fugit. Unde et sunt velit eos asperiores ipsa. Eligendi qui dolores modi tempora. Qui eos et sit sit voluptatem quasi. Est nam vitae impedit nisi quisquam accusamus. Harum vel nihil non dicta in.

Misc

This is a text link.

Italic text is used for stylistic purposes in i

This text has added emphasis in em

Bolded text is used for stylistic purposes in b

Strong is used to indicate strong importance in strong

This text is superscript

This text is subscript

A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text, and typically distinguished visually using indentation and a different typeface or smaller size quotation.

Lists

  • This is a list item in an Unordered List
  • An unordered list is a list in which the sequence of items is not important. Sometimes, an unordered list is a bulleted list. And this is a long list item in an unordered list that can wrap onto a new line.
  • Lists can be nested inside of each other
    • This is a nested list item
    • This is another nested list item in an unordered list
  • This is the last list item

  1. This is a list item in an Ordered List
  2. An ordered list is a list in which the sequence of items is important. An ordered list does not necessarily contain sequence characters.
  3. Lists can be nested inside of each other
    1. This is a nested list item
    2. This is another nested list item in an ordered list
  4. This is the last list item
Definition List
A number of connected items or names written or printed consecutively, typically one below the other.
This is a term.
This is the definition of that term, which both live in a dl.
Here is another term.
And it gets a definition too, which is this line.
Here is term that shares a definition with the term below.
And it gets a definition too, which is this line.

株式会社メタ・インフォ

スタイルガイド