Home Home

Noctia Utilities

Color

Achromatic Colors(+ Brown)

  • -noctia-white
  • -noctia-off-white
  • -noctia-very-light-gray
  • -noctia-silver
  • -noctia-light-gray
  • -noctia-gray
  • -noctia-dark-gray
  • -noctia-mineshaft
  • -noctia-dark
  • -noctia-rich-black
  • -noctia-black
  • -noctia-brown

Base Colors

  • -noctia-base-red
  • -noctia-base-orange
  • -noctia-base-yellow
  • -noctia-base-lime
  • -noctia-base-green
  • -noctia-base-cyan
  • -noctia-base-light-blue
  • -noctia-base-blue
  • -noctia-base-purple
  • -noctia-base-magenta
  • -noctia-base-pink

Main Colors

  • -noctia-main-red
  • -noctia-main-orange
  • -noctia-main-yellow
  • -noctia-main-lime
  • -noctia-main-green
  • -noctia-main-cyan
  • -noctia-main-light-blue
  • -noctia-main-blue
  • -noctia-main-purple
  • -noctia-main-magenta
  • -noctia-main-pink

Accent Colors

  • -noctia-accent-red
  • -noctia-accent-orange
  • -noctia-accent-yellow
  • -noctia-accent-lime
  • -noctia-accent-green
  • -noctia-accent-cyan
  • -noctia-accent-light-blue
  • -noctia-accent-blue
  • -noctia-accent-purple
  • -noctia-accent-magenta
  • -noctia-accent-pink

Size

Width / Height

Percent
.w-auto { width: auto; }
.w-25 { width: 25%; }
.w-33 { width: 33.333%; }
.w-50 { width: 50%; }
.w-66 { width: 66.666%; }
.w-75 { width: 75%; }
.w-full { width: 100%; }
px
.w-8px { width: 8px; }
.w-16px { width: 16px; }
.w-24px { width: 24px; }
.w-32px { width: 32px; }
.w-40px { width: 40px; }
.w-48px { width: 48px; }
.w-56px { width: 56px; }
.w-64px { width: 64px; }
Viewport
.w-10vw { width: 10vw; width: 10dvw; }
.w-25vw { width: 25vw; width: 25dvw; }
.w-50vw { width: 50vw; width: 50dvw; }
.w-75vw { width: 75vw; width: 75dvw; }
.w-100vw { width: 100vw; width: 100dvw; }
.h-x
.h-x { height: x; }
.w-x-i
.w-x-i { width: x !important; }
.h-x-i { height: x !important; }
.mdm-x
@media (min-width: 768px) {
  .mdm-x-y { x: y; }
  .mdm-x-y-i { x: y !important; }
}
.lrg-x
@media (min-width: 1024px) {
  .lrg-x-y { x: y; }
  .lrg-x-y { x: y !important; }
}

Aspect Ratio

  • .ratio-1-1
  • .ratio-16-9
  • .ratio-9-16
  • .ratio-4-3
  • .ratio-3-4
  • .ratio-3-2
  • .ratio-2-3
.ratio-x-y-i
.ratio-x-y-i { aspect-ratio: x / y !important; }

Space

.spc-0 { margin: 0; }
.spc-2 { margin: 2px; }
.spc-4 { margin: 4px; }
.spc-8 { margin: 8px; }
.spc-16 { margin: 16px; }
.spc-24 { margin: 24px; }
.spc-32 { margin: 32px; }
.spc-40 { margin: 40px; }
.spc-48 { margin: 48px; }
.spc-56 { margin: 56px; }
.spc-64 { margin: 64px; }
.spc-center { margin-inline: auto; }
.p-x
.p-x { padding: x; }
.p-center is not styled
.spc-x-i
.spc-x-i { margin: x !important; }
.p-x-i { padding: x !important; }
.x-top-y
.x-top-y { x-top: y; }
.x-top-y-i { x-top: y !important; }
.x-right-y
.x-right-y { x-right: y; }
.x-right-y-i { x-right: y !important; }
.x-bot-y
.x-bot-y { x-bottom: y; }
.x-bot-y-i { x-bottom: y !important; }
.x-left-y
.x-left-y { x-left: y; }
.x-left-y-i { x-left: y !important; }
.mdm-x-y-z
@media (min-width: 768px) {
  .mdm-x-y { x: y; }
  .mdm-x-y-i { x: y !important; }
  .mdm-x-y-z { x-y: z; }
  .mdm-x-y-z-i { x-y: z !important; }
}
.lrg-x-y-z
@media (min-width: 1024px) {
  .lrg-x-y { x: y; }
  .lrg-x-y-i { x: y !important; }
  .lrg-x-y-z { x-y: z; }
  .lrg-x-y-z-i { x-y: z !important; }
}

Text Color

Achromatic Colors(+ Brown)

Achromatic Colors
  • .clr-white
  • .clr-off-white
  • .clr-very-light-gray
  • .clr-silver
  • .clr-light-gray
  • .clr-gray
  • .clr-dark-gray
  • .clr-mineshaft
  • .clr-dark
  • .clr-rich-black
  • .clr-black
  • .clr-brown

Chromatic Colors(Accent)

Accent Colors
  • .clr-red
  • .clr-orange
  • .clr-yellow
  • .clr-lime
  • .clr-green
  • .clr-cyan
  • .clr-light-blue
  • .clr-blue
  • .clr-purple
  • .clr-magenta
  • .clr-pink

Background Color

Achromatic Colors(+ Brown)

Achromatic Colors
.bc-transparent { background-color: transparent !important; }
.bc-white { background-color: var(--noctia-white) !important; }
.bc-off-white { background-color: var(--noctia-off-white) !important; }
.bc-very-light-gray { background-color: var(--noctia-very-light-gray) !important; }
.bc-silver { background-color: var(--noctia-silver) !important; }
.bc-light-gray { background-color: var(--noctia-light-gray) !important; }
.bc-gray { background-color: var(--noctia-gray) !important; }
.bc-dark-gray { background-color: var(--noctia-dark-gray) !important; }
.bc-mineshaft { background-color: var(--noctia-mineshaft) !important; }
.bc-dark { background-color: var(--noctia-dark) !important; }
.bc-rich-black { background-color: var(--noctia-rich-black) !important; }
.bc-black { background-color: var(--noctia-black) !important; }
.bc-brown { background-color: var(--noctia-brown) !important; }

Base Colors

Base Colors
.bc-b-red { background-color: var(--noctia-base-red) !important; }
.bc-b-orange { background-color: var(--noctia-base-orange) !important; }
.bc-b-yellow { background-color: var(--noctia-base-yellow) !important; }
.bc-b-lime { background-color: var(--noctia-base-lime) !important; }
.bc-b-green { background-color: var(--noctia-base-green) !important; }
.bc-b-cyan { background-color: var(--noctia-base-cyan) !important; }
.bc-b-light-blue { background-color: var(--noctia-base-light-blue) !important; }
.bc-b-blue { background-color: var(--noctia-base-blue) !important; }
.bc-b-purple { background-color: var(--noctia-base-purple) !important; }
.bc-b-magenta { background-color: var(--noctia-base-magenta) !important; }
.bc-b-pink { background-color: var(--noctia-base-pink) !important; }

Main Colors

Main Colors
.bc-m-red { background-color: var(--noctia-main-red) !important; }
.bc-m-orange { background-color: var(--noctia-main-orange) !important; }
.bc-m-yellow { background-color: var(--noctia-main-yellow) !important; }
.bc-m-lime { background-color: var(--noctia-main-lime) !important; }
.bc-m-green { background-color: var(--noctia-main-green) !important; }
.bc-m-cyan { background-color: var(--noctia-main-cyan) !important; }
.bc-m-light-blue { background-color: var(--noctia-main-light-blue) !important; }
.bc-m-blue { background-color: var(--noctia-main-blue) !important; }
.bc-m-purple { background-color: var(--noctia-main-purple) !important; }
.bc-m-magenta { background-color: var(--noctia-main-magenta) !important; }
.bc-m-pink { background-color: var(--noctia-main-pink) !important; }

Accent Colors

Accent Colors
.bc-a-red { background-color: var(--noctia-accent-red) !important; }
.bc-a-orange { background-color: var(--noctia-accent-orange) !important; }
.bc-a-yellow { background-color: var(--noctia-accent-yellow) !important; }
.bc-a-lime { background-color: var(--noctia-accent-lime) !important; }
.bc-a-green { background-color: var(--noctia-accent-green) !important; }
.bc-a-cyan { background-color: var(--noctia-accent-cyan) !important; }
.bc-a-light-blue { background-color: var(--noctia-accent-light-blue) !important; }
.bc-a-blue { background-color: var(--noctia-accent-blue) !important; }
.bc-a-purple { background-color: var(--noctia-accent-purple) !important; }
.bc-a-magenta { background-color: var(--noctia-accent-magenta) !important; }
.bc-a-pink { background-color: var(--noctia-accent-pink) !important; }

Font ・ Text

Font Family

:root {
    --noctia-sans: "Yu Gothic", "Meiryo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --noctia-serif: "Hiragino Mincho Pro", "Yu Mincho", "MS PMincho", Georgia, "Times New Roman", Times, serif;
    --noctia-mono: "Yu Gothic UI", "MS Gothic", "Courier New", Courier, monospace;
}

.font-sans { font-family: var(--noctia-sans) !important; }
.font-serif { font-family: var(--noctia-serif) !important; }
.font-mono { font-family: var(--noctia-mono) !important; }
  • .font-sans
  • .font-serif
  • .font-mono

Font Size

.text-small { font-size: 0.875rem !important; }
.text-normal { font-size: 1rem !important; }
.text-medium { font-size: 1.125rem !important; }
.text-large { font-size: 1.25rem !important; }
.text-xlarge { font-size: 1.5rem !important; }
  • .text-small
  • .text-normal
  • .text-medium
  • .text-large
  • .text-xlarge

Font Weight & Font Style

.font-normal { font-weight: normal !important; }
.font-bold { font-weight: bold !important; }
.font-italic { font-style: italic !important; }
  • .font-normal
  • .font-bold
  • .font-italic

Line Height

.line-h-normal { line-height: normal !important; }
.line-h-1 { line-height: 1 !important; }
.line-h-1-4 { line-height: 1.4 !important; }
.line-h-1-5 { line-height: 1.5 !important; }
.line-h-1-6 { line-height: 1.6 !important; }
.line-h-2 { line-height: 2 !important; }
  • .line-h-normal
  • .line-h-1
  • .line-h-1-4
  • .line-h-1-5
  • .line-h-1-6
  • .line-h-2

Text Align

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
  • .text-left
  • .text-center
  • .text-right

Text Decoration

.text-dec-none { text-decoration: none !important; }
.text-dec-under { text-decoration: underline !important; }
.text-dec-line-through { text-decoration: line-through !important; }
  • .text-dec-none
  • .text-dec-under
  • .text-dec-line-through

White Space

.text-pre { white-space: pre !important; }
.text-pre-wrap { white-space: pre-wrap !important; }
  • .text-pre(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis, and uses SampleText123 to check display and layout. We will verify functionality with Version 2.0 and also test how difficult-to-fit words like ExtraordinaryLongWordExample are handled)
  • .text-pre-wrap(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis, and uses SampleText123 to check display and layout. We will verify functionality with Version 2.0 and also test how difficult-to-fit words like ExtraordinaryLongWordExample are handled)

Word Wrap & Word Break

.text-wrap { overflow-wrap: break-word !important; }

.word-break-all { word-break: break-all !important; }
.word-break-keep { word-break: keep-all !important; }

.text-fixed-break {
    overflow-wrap: break-word !important;
    word-break: break-all !important;
}
  • .text-wrap(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis)
  • .word-break-all(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis)
  • .word-break-keep(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis)
  • .text-fixed-break(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis)

Text Overflow

.text-ellipsis {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}
  • .text-ellipsis(This is a test sentence. It includes long words such as Supercalifragilisticexpialidocious and Pneumonoultramicroscopicsilicovolcanoconiosis, and uses SampleText123 to check display and layout. We will verify functionality with Version 2.0 and also test how difficult-to-fit words like ExtraordinaryLongWordExample are handled)

Border

Size

.border-none { border: none !important; }
.border-0-5 { border: 0.5px solid var(--noctia-base-border-color) !important; }
.border-1 { border: 1px solid var(--noctia-base-border-color) !important; }
.border-2 { border: 2px solid var(--noctia-base-border-color) !important; }
.border-4 { border: 4px solid var(--noctia-base-border-color) !important; }
.border-8 { border: 8px solid var(--noctia-base-border-color) !important; }
  • .border-none
  • .border-0-5
  • .border-1
  • .border-2
  • .border-4
  • .border-8
Default Border Color
:root {
    --noctia-base-border-color: #000000;
}
.border-top-x
.border-top-x { border-top: x !important; }
.border-right-x
.border-right-x { border-right: x !important; }
.border-bot-x
.border-bot-x { border-bottom: x !important; }
.border-left-x
.border-left-x { border-left: x !important; }

Radius

.border-radius-0 { border-radius: 0 !important; }
.border-radius-1 { border-radius: 1px !important; }
.border-radius-2 { border-radius: 2px !important; }
.border-radius-4 { border-radius: 4px !important; }
.border-radius-8 { border-radius: 8px !important; }
.border-radius-16 { border-radius: 16px !important; }
.border-radius-24 { border-radius: 24px !important; }
.border-radius-32 { border-radius: 32px !important; }
.border-radius-40 { border-radius: 40px !important; }
.border-radius-48 { border-radius: 48px !important; }
.border-radius-56 { border-radius: 56px !important; }
.border-radius-64 { border-radius: 64px !important; }
.border-radius-999 { border-radius: 99999px !important; }

Color

Achromatic Colors(+ Brown)

Achromatic Colors
  • .border-white
  • .border-off-white
  • .border-very-light-gray
  • .border-silver
  • .border-light-gray
  • .border-gray
  • .border-dark-gray
  • .border-mineshaft
  • .border-dark
  • .border-rich-black
  • .border-black
  • .border-brown

Chromatic Colors(Accent)

Accent Colors
  • .border-red
  • .border-orange
  • .border-yellow
  • .border-lime
  • .border-green
  • .border-cyan
  • .border-light-blue
  • .border-blue
  • .border-purple
  • .border-magenta
  • .border-pink

Display

.elm-none { display: none !important; }
.elm-block { display: block !important; }
.elm-inline { display: inline !important; }
.elm-inline-block { display: inline-block !important; }

.elm-flex { display: flex !important; }
.elm-inline-flex { display: inline-flex !important; }

.elm-grid { display: grid !important; }
.elm-inline-grid { display: inline-grid !important; }
.mdm-elm-x
@media (min-width: 768px) {
  .mdm-elm-x { display: x !important; }
}
.lrg-elm-x
@media (min-width: 1024px) {
  .lrg-elm-x { display: x !important; }
}

Flex Option

.flex-center {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

.flex-column {
    display: flex;
    flex-direction: column !important;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap !important;
}

.flex-flow-fixed {
    display: flex;
    flex-flow: column wrap !important;
}

.flex-1 { flex: 1 !important; }
.mdm-x
@media (min-width: 768px) {
  .mdm-x { x }
}
.lrg-x
@media (min-width: 1024px) {
  .lrg-x { x }
}

Grid Template

.grid-col-1-auto { grid-template-columns: auto !important; }
.grid-col-2-auto { grid-template-columns: repeat(2, auto) !important; }
.grid-col-3-auto { grid-template-columns: repeat(3, auto) !important; }
.grid-col-4-auto { grid-template-columns: repeat(4, auto) !important; }
.grid-col-5-auto { grid-template-columns: repeat(5, auto) !important; }
.grid-col-x-fr
.grid-col-x-fr { grid-template-columns: repeat(x, 1fr) !important; }
.grid-row-x-y
.grid-row-x-y { grid-template-rows: repeat(x, y) !important; }
.mdm-grid-x-y-z
@media (min-width: 768px) {
  .mdm-grid-x-y-z { grid-template-x: repeat(y, z) !important; }
}
.lrg-grid-x-y-z
@media (min-width: 1024px) {
  .lrg-grid-x-y-z { grid-template-x: repeat(y, z) !important; }
}

Gap

px
.gap-0 { gap: 0 !important; }
.gap-2 { gap: 2px !important; }
.gap-4 { gap: 4px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.gap-40 { gap: 40px !important; }
.gap-48 { gap: 48px !important; }
.gap-56 { gap: 56px !important; }
.gap-64 { gap: 64px !important; }
rem
.gap-0-125rem { gap: 0.125rem !important; }
.gap-0-25rem { gap: 0.25rem !important; }
.gap-0-5rem { gap: 0.5rem !important; }
.gap-1rem { gap: 1rem !important; }
.gap-1-5rem { gap: 1.5rem !important; }
.gap-2rem { gap: 2rem !important; }
.gap-2-5rem { gap: 2.5rem !important; }
.gap-3rem { gap: 3rem !important; }
.gap-4rem { gap: 4rem !important; }
.gap-x-a
.gap-x-a { column-gap: a !important; }
.gap-y-a
.gap-y-a { row-gap: a !important; }
.mdm-gap-a
@media (min-width: 768px) {
  .mdm-gap-a { gap: a !important; }
  .mdm-gap-x-a { column-gap: a !important; }
  .mdm-gap-y-a { row-gap: a !important; }
}
.lrg-gap-a
@media (min-width: 1024px) {
  .lrg-gap-a { gap: a !important; }
  .lrg-gap-x-a { column-gap: a !important; }
  .lrg-gap-y-a { row-gap: a !important; }
}

Flex & Grid Option

Align Items
.align-items-start { align-items: start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: end !important; }
.align-items-stretch { align-items: stretch !important; }
Justify Items
.justify-items-start { justify-items: start !important; }
.justify-items-center { justify-items: center !important; }
.justify-items-end { justify-items: end !important; }
.justify-items-stretch { justify-items: stretch !important; }
Align Content
.align-content-start { align-content: start !important; }
.align-content-center { align-content: center !important; }
.align-content-end { align-content: end !important; }
.align-content-stretch { align-content: stretch !important; }
.align-content-between { align-content: space-between !important; }
.align-content-around { align-content: space-around !important; }
.align-content-evenly { align-content: space-evenly !important; }
Justify Content
.justify-content-start { justify-content: start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: end !important; }
.justify-content-stretch { justify-content: stretch !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.justify-content-evenly { justify-content: space-evenly !important; }
.mdm-x-y
@media (min-width: 1024px) {
  .mdm-align-items-y { align-items: y !important; }
  .mdm-justify-items-y { justify-items: y !important; }
  .mdm-align-content-y { align-content: y !important; }
  .mdm-justify-content-y { justify-content: y !important; }
}
.lrg-x-y
@media (min-width: 1024px) {
  .lrg-align-items-y { align-items: y !important; }
  .lrg-justify-items-y { justify-items: y !important; }
  .lrg-align-content-y { align-content: y !important; }
  .lrg-justify-content-y { justify-content: y !important; }
}

Overflow

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }

.overflow-y-hidden { overflow-y: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }

Hide

Hide Scroll Bar

.no-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar { display: none !important; }
--------------------------------------------------------------------
.no-scrollbar-all,
.no-scrollbar-all * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.no-scrollbar-all::-webkit-scrollbar,
.no-scrollbar-all *::-webkit-scrollbar { display: none !important; }
.no-scrollbar
Hides an element’s scrollbar
.no-scrollbar-all
Hides scrollbars on all child elements

Hide Marker

.hide-list-style,
.hide-list-style > li { list-style: none !important; }

.hide-list-style::-webkit-details-marker { display: none !important; }
.hide-list-style
Removes markers from <ul>, <ol>, <li>, and <summary>