Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to the Ippon UI packages are documented in this file, so con

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), with one entry per release listing the affected package versions.

## 2026-07-24 — @ippon-ui/styles 0.0.11

### Added

- `prism-ippon.css` stylesheet: a light [Prism](https://prismjs.com) theme on white background built on the Ippon UI color tokens, importable with `@ippon-ui/styles/prism-ippon.css`.

### Changed

- The Pattern Library documentation code snippets use the new `prism-ippon.css` light theme instead of the dark `okaidia` theme.

## 2026-07-08 — @ippon-ui/styles 0.0.10 · @ippon-ui/react 0.0.9

### Added
Expand Down
2 changes: 1 addition & 1 deletion styles/.stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"selector-no-qualifying-type": [
true,
{
"ignore": ["class"]
"ignore": ["class", "attribute"]
}
],
"order/order": [
Expand Down
8 changes: 8 additions & 0 deletions styles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ Then use the CSS classes in your markup. Classes follow an alternative-prefix co
<span class="ippon-badge -success">Done</span>
```

### Prism theme

If you highlight code with [Prism](https://prismjs.com), a light theme based on the Ippon UI tokens is available:

```ts
import '@ippon-ui/styles/prism-ippon.css';
```

## License

[Apache-2.0](./LICENCE) © Ippon Technologies
2 changes: 1 addition & 1 deletion styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ippon-ui/styles",
"version": "0.0.10",
"version": "0.0.11",
"description": "Ippon UI Pattern Library",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion styles/src/documentation/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ html(lang='en')
link(href='[[TIKUI_BASEPATH]]fonts/saira-extra-condensed/700.css', rel='stylesheet')
link(href='[[TIKUI_BASEPATH]]icons/ionicons.css', rel='stylesheet')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]tikui.css')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]prism-ippon.css')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]documentation/style.css')
link(rel='stylesheet', href='[[TIKUI_BASEPATH]]lib/prismjs/prism-okaidia.css')
body
.ippon-layout
block body
Expand Down
2 changes: 1 addition & 1 deletion styles/src/documentation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ body {
resize: both;
}

.ipp-doc-snippet {
pre.ipp-doc-snippet {
box-sizing: border-box;
margin: 0;
border-radius: var(--ippon-radius-l);
Expand Down
112 changes: 112 additions & 0 deletions styles/src/prism-ippon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
code[class*='language-'],
pre[class*='language-'] {
tab-size: 4;
text-align: left;
line-height: 1.5;
word-spacing: normal;
white-space: pre;
word-break: normal;
hyphens: none;
color: var(--ippon-color-neutral-text-icon-primary);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
}

code[class*='language-']::selection,
code[class*='language-'] ::selection,
pre[class*='language-']::selection,
pre[class*='language-'] ::selection {
background: var(--ippon-color-neutral-200);
}

pre[class*='language-'] {
margin: var(--ippon-size-8) 0;
border: 1px solid var(--ippon-color-neutral-border);
border-radius: var(--ippon-radius-m);
background: var(--ippon-color-neutral-surface-primary);
padding: var(--ippon-size-16);
overflow: auto;
}

:not(pre) > code[class*='language-'] {
border-radius: var(--ippon-radius-m);
background: var(--ippon-color-neutral-surface-secondary);
padding: 0 var(--ippon-size-4);
white-space: normal;
}

.token {
&.comment,
&.prolog,
&.cdata {
color: var(--ippon-color-neutral-text-icon-tertiary);
font-style: italic;
}

&.punctuation,
&.operator {
color: var(--ippon-color-neutral-600);
}

&.namespace {
opacity: 0.7;
}

&.keyword,
&.tag,
&.doctype,
&.atrule {
color: var(--ippon-color-brand-text-icon-primary);
}

&.string,
&.char,
&.attr-value,
&.builtin,
&.inserted {
color: var(--ippon-color-positive-700);
}

&.attr-name,
&.property,
&.variable,
&.url {
color: var(--ippon-color-information-2-700);
}

&.function,
&.class-name,
&.selector,
&.attr-id,
&.attr-class,
&.filter-name {
color: var(--ippon-color-information-700);
}

&.number,
&.boolean,
&.constant,
&.symbol,
&.regex,
&.deleted {
color: var(--ippon-color-negative-700);
}

&.important {
color: var(--ippon-color-negative-700);
font-weight: bold;
}

&.bold {
font-weight: bold;
}

&.italic {
font-style: italic;
}

&.entity {
color: var(--ippon-color-neutral-600);
cursor: help;
}
}
Loading