@Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is...

39
@Daisuke Takayama

Transcript of @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is...

Page 1: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

@Daisuke Takayama

Page 2: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Agenda

ATOMIC PARTS BASE CSS

1. What is Atomic Parts Base CSS(APB CSS)

2. Atoms Style Sheet 3. Molecules Style Sheet 4. Multi Class (object-oriented)

5. Directory structure 6. sample

Page 3: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

What is Atomic Parts Base CSS(APB CSS)

ATOMIC PARTS BASE CSS(APB CSS)

Page 4: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

What is Atomic Parts Base CSS(APB CSS)

ATOMIC PARTS BASE CSS

Atomic Design + OOCSS + SMACSS = Atomic Parts Base CSS(APB CSS)

Page 5: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

What is Atomic Parts Base CSS(APB CSS)

ATOMIC PARTS BASE CSS

・Simple ・Predictable ・General versatility ・Reusable ・Maintainable ・Scalable ・Interactive

Page 6: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS(APB CSS)

Page 7: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atomic Design

h"p://bradfrost.com/blog/post/atomic-­‐web-­‐design/

Page 8: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atoms Button

Page 9: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atoms

Page 10: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atoms Icon

Page 11: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atoms

Page 12: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Atoms Style Sheet

ATOMIC PARTS BASE CSS

Atoms Icon Button

Page 13: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS(APB CSS)

Page 14: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS

Molecules Button + Icon

Page 15: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS

Molecules

Page 16: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS

Molecules Text + Icon

Page 17: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS

Molecules

Page 18: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Molecules Style Sheet

ATOMIC PARTS BASE CSS

Molecules Button + Icon Text + Icon

Page 19: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS(APB CSS)

Page 20: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

OOCSS + SMACSS

Excerpts from the 「OOCSS」,「SMACSS 」

Page 21: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Atomic Module Skin State Number Other

Page 22: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Based on the atom name or module name, and grant the six types of class name.

Page 23: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Atomic

Page 24: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Module

Page 25: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Skin

Page 26: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Number

Page 27: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

State

Page 28: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Multi Class (object-oriented)

ATOMIC PARTS BASE CSS

CSS Class Type

Other

Page 29: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS(APB CSS)

Page 30: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS

SCSS Directory

Page 31: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS

Base Directory

Page 32: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS

Parts Directory

Page 33: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS

Pages Directory

Page 34: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Directory structure

ATOMIC PARTS BASE CSS

Name Space

Page 35: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Sample

ATOMIC PARTS BASE CSS(APB CSS)

Page 36: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Sample

ATOMIC PARTS BASE CSS

Github

Official page http://apbcss.com

https://github.com/webcyou/apbcss

Page 37: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Other

ATOMIC PARTS BASE CSS(APB CSS)

Page 38: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

Other

ATOMIC PARTS BASE CSS

Author Daisuke Takayama

Japan

Name

Country

Job

FrontEnd Engineer Blog http://www.webcyou.com

https://github.com/webcyou https://github.com/panicdragon

@webcyou @panicdragon

Page 39: @Daisuke Takayama - APB CSSapbcss.com/file/apb_css.pdf · Agenda ATOMIC PARTS BASE CSS 1. What is Atomic Parts Base CSS (APB CSS) 2. Atoms Style Sheet 3. Molecules Style Sheet 4.

ATOMIC PARTS BASE CSS

Thank You..