Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • feat/new-image-formats
  • clickable-select-chevron
  • 1.2.0
  • 1.4.0
  • 1.4.1
  • 1.4.2
  • 1.5.0
  • 1.5.1
  • 1.5.2
  • 1.5.3
  • 1.5.4
  • 1.5.5
  • 1.6.0
  • 1.6.1
  • 1.6.2
  • 1.6.3
  • 1.6.4
  • 1.7.0
  • 1.8.0
  • 2.0.0
  • 2.0.0-alpha-1
  • 2.0.0-alpha-10
  • 2.0.0-alpha-11
  • 2.0.0-alpha-12
  • 2.0.0-alpha-13
  • 2.0.0-alpha-14
  • 2.0.0-alpha-15
  • 2.0.0-alpha-16
  • 2.0.0-alpha-17
  • 2.0.0-alpha-2
  • 2.0.0-alpha-3
  • 2.0.0-alpha-4
  • 2.0.0-alpha-5
  • 2.0.0-alpha-6
  • 2.0.0-alpha-7
  • 2.0.0-alpha-8
  • 2.0.0-alpha-9
  • 2.0.1
  • 2.0.2
  • 2.0.3
  • 2.0.4
  • 2.1.0
  • 2.1.1
  • 2.1.2
  • 2.10.0
  • 2.11.0
  • 2.12.1
  • 2.13.0
  • 2.14.0
  • 2.15.0
  • 2.16.0
  • 2.16.1
  • 2.17.0
  • 2.18.0
  • 2.19.0
  • 2.2.0
  • 2.2.1
  • 2.20.0
  • 2.3.0
  • 2.3.1
  • 2.3.2
  • 2.3.3
  • 2.3.4
  • 2.4.0
  • 2.5.0
  • 2.5.1
  • 2.5.2
  • 2.6.0
  • 2.7.0
  • 2.7.1
  • 2.8.0
  • 2.9.0
  • 2.9.1
74 results

Target

Select target project
No results found
Select Git revision
  • master
  • 1.2.0
  • 1.4.0
  • 1.4.1
  • 1.4.2
  • 1.5.0
  • 1.5.1
  • 1.5.2
  • 1.5.3
  • 1.5.4
  • 1.5.5
  • 1.6.0
  • 1.6.1
  • 1.6.2
  • 1.6.3
  • 1.6.4
  • 1.7.0
  • 1.8.0
  • 2.0.0-alpha-1
  • 2.0.0-alpha-10
  • 2.0.0-alpha-11
  • 2.0.0-alpha-2
  • 2.0.0-alpha-3
  • 2.0.0-alpha-4
  • 2.0.0-alpha-5
  • 2.0.0-alpha-6
  • 2.0.0-alpha-7
  • 2.0.0-alpha-8
  • 2.0.0-alpha-9
29 results
Show changes

Commits on Source 171

71 additional commits have been omitted to prevent performance issues.
288 files
+ 23575
5178
Compare changes
  • Side-by-side
  • Inline

Files

+3 −1
Original line number Diff line number Diff line
@@ -14,9 +14,11 @@ build:
    - npm install
    - npm run build
  after_script:
    - echo "{\"job_token\":\"$CI_JOB_TOKEN\", \"name\":\"$SITE_NAME\" }" > request.json
    - TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
    - echo "{\"name\":\"$SITE_NAME\", \"tag\":\"$TAG\" }" > request.json
    - "curl -H 'Content-Type: application/json' -X POST -d @request.json $WEBHOOK_URL"
  artifacts:
    expire_in: 30 min
    paths:
     - $ARTIFACTS_PATH
+1 −1
Original line number Diff line number Diff line
13.8
14.5
+16 −6
Original line number Diff line number Diff line
FROM node:14.5-alpine as build

RUN mkdir -p /home/node/ui-styleguide/node_modules

WORKDIR /home/node/ui-styleguide

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

# ---

FROM nginx:alpine

# Remove default index file
RUN rm /usr/share/nginx/html/*
# Copy customized config
COPY ./docker/nginx/default.conf /etc/nginx/conf.d/
# Add all tarballs and unzip it
ADD ./dist/* /usr/share/nginx/html/
COPY --from=build /home/node/ui-styleguide/public /usr/share/nginx/html/

LICENSE

100755 → 100644
+0 −0

File mode changed from 100755 to 100644.

+78 −13
Original line number Diff line number Diff line
# Pirati UI kit

This repository holds UI styleguide for Czech Pirate Party websites.
This repository holds UI styleguide for Czech Pirate Party websites. It's
intention is to made a core framework to be used across all sites and build all
UI using it. This will ensure better consistency a easier updates.

It is built upon:

- [Patternlab](https://patternlab.io/) is an awesome tool for developing design systems
- [Patternlab](https://patternlab.io/) is a tool for developing design systems
- [Tailwind CSS](https://tailwindcss.com/) is a brilliant utility-first CSS framework built on top of PostCSS

## Getting Started
@@ -17,23 +19,26 @@ These instructions are for getting the project running off a local development e

### System Requirements

- [Node.js](https://nodejs.org) (v12.14.1 LTS or later recommended)
- [Node.js](https://nodejs.org) (v14.5.x or later)

### Install and Run

It's Javascript all the way down so once you have the the system requirements you can run the following commands:
It's JavaScript all the way down so once you have the the system requirements
you can run the following commands:

```
npm i
npm run develop
```

The `npm` command will install project dependencies and the `npm run develop` command builds the project, sets up a local server for the Patternlab UI and watches relevant template files to rebuild on any changes.

The `npm` command will install project dependencies and the `npm run develop`
command builds the project, sets up a local server for the Patternlab UI and
watches relevant template files to rebuild on any changes.

### Build

The build command compiles the styleguide CSS and the Patternlab output but it doesn't create a server for the styleguide website. To build, run:
The build command compiles the styleguide CSS and the Patternlab output but it
doesn't create a server for the styleguide website. To build, run:

```
npm run build
@@ -47,18 +52,25 @@ First build for production as described previously:
npm run build
```

Now, make new version
Now, make new version using [semver principle](https://semver.org/):

```
./scripts/make-version.sh [VERSION_NUMBER]
npm version [VERSION_NUMBER]
```

This will create new version bundle under `dist` and also update `dist/latest.tgz` to be your new version.
This will create a new git tag which will be recongnized by the build server and it will generate following:

- update `latest` pointer
- update minor version pointer like `1.x.x` in case this was a patch update or minor update
- update patch version pointer like `1.3.x` in case this was the patch update
- add `1.3.3` version if the tag name was `1.3.3`

### Running locally with Docker

Finally, create a docker build:
Create a docker image:

```
docker build -t pirati-ui
docker build -t pirati-ui .
```

You can then run the docker container like this:
@@ -66,3 +78,56 @@ You can then run the docker container like this:
```
docker run -p 8001:80 pirati-ui:latest
```

Your docker container will be available at [http://localhost:8001](http://localhost:8001).


### Updating icons

This styleguide features iconset too. Icons themselves are managed using
[Icomoon](https://icomoon.io) web app. If you don't have your Icomoon account
yet, start by creating one. Then, use `source/icons/selection.json` to load
current project settings. Add/modify icons and finally download your new icon
font. Delete contents of the `source/icons` and put all the content from your
downloaded font. When finished, run `npm run update-iconset` that will update
both the style and pattern file automatically.


## Developing other websites with pirati-ui

In order to integrate `pirati-ui` with other websites, you will need to include
at least the CSS source that defines look and feel. Simply place the following
code in your `<head>`:


```html
<link rel="stylesheet" href="[ROOT_URL]/css/styles.css">
```

If you want to use the JS enahancements as well, you will also need to:

1. Include Vue.js:

    ```html
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js"></script>
    ```

2. Include `pirati-ui` JS bundle:

    ```html
    <script src="[ROOT_URL]/js/main.bundle.js"></script>
    ```

Make sure that Vue.js is included *before* the JS bundle. The best place for
both of the JS sources is at the end of your HTML document.

The `[ROOT_URL]` should point to the root address of your `pirati-ui` installation. This can either be
one of official bundles hosted at `https://styleguide.pir-test.eu`:

- https://styleguide.pir-test.eu/latest/
- https://styleguide.pir-test.eu/1.x.x/
- ... and so on

Alternatively, you can run the `pirati-ui` locally. In this case, just run
`npm run develop` and use whatever opens in the browser as your `ROOT_URL`.
Usually, this will be `http://localhost:3000/`.

gulpfile.js

100755 → 100644
+17 −39
Original line number Diff line number Diff line
@@ -23,16 +23,6 @@ const postcss = require("gulp-postcss");
const tailwindcss = require("tailwindcss");
const rename = require("gulp-rename");
const assets = require("postcss-assets");
const postcssPurgecss = require("@fullhuman/postcss-purgecss")({
  content: [
    "./source/**/*.mustache",
    "./source/**/*.json",
    "./source/**/*.js",
    "./source/**/*.vue",
    "./public/**/*.html",
  ],
  defaultExtractor: (content) => content.match(/[A-Za-z0-9-_:/]+/g) || [],
});


function resolvePath(pathInput) {
@@ -58,6 +48,14 @@ gulp.task("pl-copy:favicon", function (done) {
    .on("end", done);
});

// Iconset font copy
gulp.task("pl-copy:icons", function (done) {
  return gulp
    .src("**/*.*", { cwd: resolvePath(paths().source.iconfont) })
    .pipe(gulp.dest(resolvePath(paths().public.fonts)))
    .on("end", done);
});

// Fonts copy
gulp.task("pl-copy:font", function (done) {
  return gulp
@@ -125,6 +123,7 @@ gulp.task(
  gulp.parallel(
    "pl-copy:img",
    "pl-copy:favicon",
    "pl-copy:icons",
    "pl-copy:font",
    "pl-copy:styleguide",
    "pl-copy:styleguide-css",
@@ -199,30 +198,7 @@ function reloadJS(done) {
 * TAILWIND AND POSTCSS TASKS
 ******************************************************/

gulp.task("tailwind-postcss:build", function (done) {
  return gulp
    .src("./source/css/style.pcss")
    .pipe(
      postcss([
        require("postcss-import"),
        tailwindcss("./tailwind.config.js"),
        require("postcss-nested"),
        // require('postcss-preset-env'),
        require("postcss-custom-properties"),
        require("autoprefixer"),
        assets({
          basePath: "source/",
          loadPaths: ["images/"],
        }),
        require("postcss-clean"),
      ])
    )
    .pipe(rename("styles.css"))
    .pipe(gulp.dest(resolvePath(paths().public.css)))
    .on("end", done);
});

gulp.task("tailwind-postcss:build:production", function (done) {
gulp.task("tailwind-postcss", function (done) {
  return gulp
    .src("./source/css/style.pcss")
    .pipe(
@@ -238,7 +214,6 @@ gulp.task("tailwind-postcss:build:production", function (done) {
          loadPaths: ["images/"],
        }),
        require("postcss-clean"),
        postcssPurgecss,
      ])
    )
    .pipe(rename("styles.css"))
@@ -273,7 +248,7 @@ function watch () {
  gulp.watch(
    postcssPaths,
    {useFsEvents: false},
    gulp.series("tailwind-postcss:build", reloadCSS)
    gulp.series("tailwind-postcss", reloadCSS)
  );

  console.log("Watching following source files:", jsPaths.concat(postcssPaths));
@@ -318,6 +293,7 @@ gulp.task(
        server: {
          baseDir: resolvePath(paths().public.root),
        },
        cors: true,
        snippetOptions: {
          // Ignore all HTML files within the templates folder
          blacklist: ["/index.html", "/", "/?*"],
@@ -355,7 +331,8 @@ const buildJSBundle = (env) => {
      exclude: "node_modules/**/*",
      target: {
        chrome: 71,
        firefox: 64
        firefox: 64,
        edge: 19
      },
    }),
    commonjs(),
@@ -402,12 +379,13 @@ gulp.task('rollup:build:production', buildJSBundle("production"));

gulp.task(
  "site:build",
  gulp.parallel("tailwind-postcss:build", "rollup:build", "patternlab:build")
  gulp.parallel("tailwind-postcss", "patternlab:build", "rollup:build")
);

gulp.task(
  "site:build:production",
  gulp.parallel("tailwind-postcss:build:production", "rollup:build:production", "patternlab:build")
  // Build patternlab first to have all the necessary CSS classes ready for auto purge.
  gulp.series("patternlab:build", gulp.parallel("tailwind-postcss", "rollup:build:production"))
);

/******************************************************
+14178 −3784

File changed.

Preview size limit exceeded, changes collapsed.

package.json

100755 → 100644
+18 −9
Original line number Diff line number Diff line
{
  "name": "edition-node-gulp",
  "description": "The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.",
  "version": "1.3.4",
  "version": "2.20.0",
  "dependencies": {
    "@fullcalendar/core": "^6.1.5",
    "@fullcalendar/daygrid": "^6.1.5",
    "@fullcalendar/interaction": "^6.1.5",
    "@fullcalendar/multimonth": "^6.1.6",
    "@fullcalendar/vue": "^6.1.5",
    "browser-sync": "^2.26.7",
    "gulp": "^4.0.2",
    "kind-of": "^6.0.3",
@@ -12,7 +17,8 @@
    "styleguidekit-assets-default": "^3.0.0",
    "styleguidekit-mustache-default": "^3.0.0",
    "tailwindcss-elevation": "^0.3.4",
    "vue": "^2.6.11",
    "tippy.js": "^6.3.7",
    "vue": "^2.7.14",
    "vue2-flip-countdown": "^0.10.0"
  },
  "resolutions": {
@@ -35,9 +41,10 @@
  "scripts": {
    "postinstall": "node scripts/postinstall.js",
    "gulp": "gulp -- ",
    "develop": "gulp patternlab:serve",
    "build": "gulp",
    "make-version": "scripts/make-version.sh"
    "develop": "NODE_ENV=development gulp patternlab:serve",
    "build": "NODE_ENV=production gulp",
    "make-version": "scripts/make-version.sh",
    "update-iconset": "scripts/update-iconset.js"
  },
  "license": "MIT",
  "engines": {
@@ -52,11 +59,13 @@
    "@rollup/stream": "^1.0.0",
    "acorn": "^6.4.1",
    "autoprefixer": "^9.5.1",
    "chart.js": "^4.2.0",
    "color": "^3.1.2",
    "gulp-add-src": "^1.0.0",
    "gulp-concat": "^2.6.1",
    "gulp-postcss": "^8.0.0",
    "gulp-postcss": "^9.0.0",
    "gulp-rename": "^2.0.0",
    "lodash": "^4.17.15",
    "postcss-assets": "^5.0.0",
    "postcss-clean": "^1.1.0",
    "postcss-custom-properties": "^9.1.1",
@@ -67,10 +76,10 @@
    "rollup-plugin-terser": "^6.1.0",
    "rollup-plugin-vue": "^5.1.9",
    "tailwind-css-variables": "^2.0.3",
    "tailwindcss": "^1.4.6",
    "tailwindcss-typography": "^3.1.0",
    "tailwindcss": "^3.3.3",
    "@tailwindcss/typography": "^0.5.10",
    "vinyl-buffer": "^1.0.1",
    "vinyl-source-stream": "^2.0.0",
    "vue-template-compiler": "^2.6.11"
    "vue-template-compiler": "^2.7.14"
  }
}

patternlab-config.json

100755 → 100644
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
      "js" : "./source/js",
      "images" : "./source/images",
      "fonts" : "./source/fonts",
      "iconfont" : "./source/icons/fonts",
      "css" : "./source/css/"
    },
    "public" : {

scripts/make-version.sh

deleted100755 → 0
+0 −24
Original line number Diff line number Diff line
#!/bin/bash

VERSION=$1

if [ -z "$VERSION" ]
then
      echo "Please specify a new version in argument"
      exit 1
fi

CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PROJECT_DIR="$CURRENT_DIR/.."
DIST_DIR="$PROJECT_DIR/dist"

mkdir -p $DIST_DIR

rm -f "$DIST_DIR/latest.tgz" &&
  rm -rf "$DIST_DIR/latest" &&
  cp -rf "$PROJECT_DIR/public" "$DIST_DIR/latest"
  tar -czf "$DIST_DIR/latest.tgz" -C "$DIST_DIR" latest &&
  mv "$DIST_DIR/latest" "$DIST_DIR/$VERSION"
  tar -czf "$DIST_DIR/$VERSION.tgz" -C "$DIST_DIR" $VERSION &&
  rm -rf "$DIST_DIR/$VERSION" &&
  echo "New version ${VERSION} is ready as $DIST_DIR/$VERSION.tgz, please add it to repository."

scripts/postinstall.js

100755 → 100644
+0 −0

File mode changed from 100755 to 100644.

+92 −0
Original line number Diff line number Diff line
#!/usr/bin/env node

const crypto = require('crypto');
const fs = require("fs/promises");
const path = require("path");

const selection = require("../source/icons/selection.json");

const buildBaseRules = (hash) => `
@font-face {
  font-family: 'pirati-ui';
  src:  url('../fonts/pirati-ui.eot?${hash}');
  src:  url('../fonts/pirati-ui.eot?${hash}#iefix') format('embedded-opentype'),
    url('../fonts/pirati-ui.ttf?${hash}') format('truetype'),
    url('../fonts/pirati-ui.woff?${hash}') format('woff'),
    url('../fonts/pirati-ui.svg?${hash}#pirati-ui') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="ico--"], [class*=" ico--"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'pirati-ui' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
`;

const buildIconRules = (icons) => {
  return icons.map(icon => `.${icon.class}:before { content: "${icon.content}"; }`).join("\n");
}

const getHash = (icons) => {
  return crypto.createHash('md5').update(icons, 'utf8').digest('hex');
}

const buildRuleset = (icons) => {
  const iconRules = buildIconRules(icons);
  const hash = getHash(iconRules);
  const baseRules = buildBaseRules(hash);
  return [baseRules, iconRules].join("\n");
}

const buildPattern = (icons) => {
  const body = icons.map(icon => `
<div class="card">
  <div class="flex justify-center items-center h-16 text-2xl border-b border-grey-100 bg-grey-50 p-2">
    <i class="${icon.class}"></i>
  </div>
  <div class="card__body p-2 text-2xs">
    <code>.${icon.class}</code>
  </div>
</div>`).join("\n");
  return `<div class="grid grid-cols-2 sm:grid-cols-4 lg:grid-cols-8 xl:grid-cols-16 gap-2 items-center">${body}</div>`;
}

async function writeFile(path, content) {
  let filehandle;

  try {
    filehandle = await fs.open(path, "w");
    filehandle.write(content);
  } finally {
    if (filehandle !== undefined)
      await filehandle.close();
  }
}


const prefix = selection.preferences.fontPref.prefix;
const icons = selection.icons.map(icon => {
  const content = `${'\\'}${icon.properties.code.toString(16)}`;
  return icon.properties.name.split(", ").map(iconName => ({
    class: `${prefix}${iconName}`,
    content
  }));
}).flat();

// Write PCSS
writeFile(path.join(path.dirname(__filename), "..", "source", "css", "atoms", "icons.pcss"), buildRuleset(icons));

// Write Pattern Lab pattern
writeFile(path.join(path.dirname(__filename), "..", "source", "_patterns", "00-atoms", "02-icons", "icons.mustache"), buildPattern(icons));

source/_data/data.json

100755 → 100644
+110 −9
Original line number Diff line number Diff line
@@ -4,27 +4,27 @@
  "title": "Nullizzle shizznit velizzle, hizzle, suscipit own yo', gravida vizzle, arcu.",
  "img": {
    "avatar": {
      "src": "http://placeimg.com/100/100/people",
      "src": "https://picsum.photos/100",
      "alt": "Avatar"
    },
    "square": {
      "src": "http://placeimg.com/300/300/nature",
      "src": "https://picsum.photos/300",
      "alt": "Square"
    },
    "rectangle": {
      "src": "http://placeimg.com/400/300/tech",
      "src": "https://picsum.photos/400/300",
      "alt": "Rectangle"
    },
    "landscape-4x3": {
      "src": "http://placeimg.com/400/300/tech",
      "src": "https://picsum.photos/400/300",
      "alt": "4x3 Image"
    },
    "landscape-16x9": {
      "src": "http://placeimg.com/640/360/tech",
      "src": "https://picsum.photos/640/360",
      "alt": "16x9 Image"
    },
    "landscape-16x9-fullhd": {
      "src": "https://loremflickr.com/1920/1080",
      "src": "https://picsum.photos/1920/1080",
      "alt": "16x9 Image Full HD"
    }
  },
@@ -32,13 +32,16 @@
    "short": "Lorizzle pimpin' dolizzle sit amet I",
    "medium": "Rizzle adipiscing elizzle. Nullam sapien velizzle, shit volutpizzle, my"
  },
  "list": {
    "item": "Shizz fo shizzle mah nizzle fo rizzle, <a href='#' class='underline'>mah home g-dizzle</a>, gravida vizzle, arcu. Pellentesque crunk tortizzle. Sed erizzle. Black izzle sheezy telliv."
  },
  "excerpt": {
    "short": "Shizz fo shizzle mah nizzle fo rizzle, mah home g-dizzle, gravida vizzle, arcu. Pellentesque crunk tortizzle. Sed erizzle. Black izzle sheezy telliv.",
    "medium": "Izzle crazy tempizzle sizzle. We gonna chung gangsta get down get down fo shizzle turpizzle. Away break it down black. Pellentesque bling bling rhoncus fo shizzle. In hac the bizzle platea dictumst. Black dapibizzle. Crackalackin.",
    "long": "Curabitizzle fo shizzle diam quizzle nisi nizzle mollizzle. Suspendisse boofron. Morbi odio. Sure pizzle. Crazy orci. Shut the shizzle up maurizzle get down get down, check out this a, go to hizzle sit amizzle, malesuada izzle, pede. Pellentesque gravida. Vestibulizzle check it out mi, volutpat izzle, shiz sed, shiznit sempizzle, da bomb. Funky fresh in ipsum. Da bomb volutpat felis vizzle daahng dawg. Crizzle quis dope izzle fo shizzle my ni."
  },
  "cta": "Call to action",
  "icon": "fas fa-skull-crossbones",
  "icon": "ico--pirati",
  "description": "Fizzle crazy tortor. Sed rizzle. Ass pimpin' dolor dapibizzle turpis tempizzle fo shizzle my nizzle. Maurizzle pellentesque its fo rizzle izzle turpis. Get down get down we gonna chung nizzle. Shizzlin dizzle eleifend rhoncizzle break it down. In yo ghetto platea dictumst. Bling bling dapibizzle. Curabitur break yo neck, yall fo, pretizzle eu, go to hizzle dope, own yo' vitae, nunc. Bizzle suscipizzle. Ass semper velit sizzle fo.",
  "url": "http://lorizzle.nl/",
  "person": {
@@ -49,10 +52,11 @@
    "last": "Koolen",
    "lasti": "K",
    "occupation": "Software company manager and open-source software expert",
    "email": "example@example.com",
    "email": "someone.from.the.party@pirati.cz",
    "claim": "Evropská unie není vzdálená instituce žijící svým životem – jsme to my všichni. Přesto máme někdy problém se orientovat či přímo angažovat v evropské politice.",
    "party": "Pirátská strana",
    "age": "30",
    "city": "Valašské Meziříčí",
    "position": "1"
  },
  "organization": {
@@ -92,5 +96,102 @@
    "long": "20",
    "short": "20"
  },
  "seconds": "31"
  "seconds": "31",
  "form": {
    "label": "Název políčka",
    "placeholder": "Placeholder"
  },
  "calendarData": "[{\"title\": \"event 1\", \"date\": \"2024-03-02\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2024-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 3\", \"date\": \"2024-03-02\", \"url\": \"https://example.com\"}, {\"title\": \"event 4\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 5\", \"date\": \"2023-04-01\", \"url\": \"https://example.com\"}, {\"title\": \"event 2\", \"date\": \"2023-04-10\", \"url\": \"https://example.com\"}]",
  "greyColors": [
    {"cls": "grey-50", "hex": "#f7f7f7", "name": "Grey 50"},
    {"cls": "grey-100", "hex": "#f3f3f3", "name": "Grey 100"},
    {"cls": "grey-125", "hex": "#f0f0f0", "name": "Grey 125"},
    {"cls": "grey-200", "hex": "#adadad", "name": "Grey 200"},
    {"cls": "grey-300", "hex": "#4c4c4c", "name": "Grey 300"},
    {"cls": "grey-400", "hex": "#343434", "name": "Grey 400"},
    {"cls": "grey-500", "hex": "#303132", "name": "Grey 500"},
    {"cls": "grey-600", "hex": "#262626", "name": "Grey 600"},
    {"cls": "grey-700", "hex": "#202020", "name": "Grey 700"},
    {"cls": "grey-800", "hex": "#1f1f1f", "name": "Grey 800"}
  ],
  "brandColors": [
    {
      "name": "Primary",
      "variants": [
        {"cls": "black", "name": "Black", "hex": "#000000"},
        {"cls": "white", "name": "White", "hex": "#ffffff"}
      ]
    },
    {
      "name": "Olive",
      "variants": [
        {"cls": "olive-100", "name": "Olive 100", "hex": "#d6e8b3"}
      ]
    },
    {
      "name": "Green",
      "variants": [
        {"cls": "green-200", "name": "Green 200", "hex": "#92c6ab"},
        {"cls": "green-300", "name": "Green 300", "hex": "#76cc9f"},
        {"cls": "green-400", "name": "Green 400", "hex": "#4ca971"}
      ]
    },
    {
      "name": "Yellow",
      "variants": [
        {"cls": "yellow-100", "name": "Yellow 100", "hex": "#fff7bf"},
        {"cls": "yellow-200", "name": "Yellow 200", "hex": "#f7f38a"},
        {"cls": "yellow-300", "name": "Yellow 300", "hex": "#ffea5a"},
        {"cls": "yellow-400", "name": "Yellow 400", "hex": "#fde119"}
      ]
    },
    {
      "name": "Blue",
      "variants": [
        {"cls": "blue-100", "name": "Blue 100", "hex": "#abcdef"},
        {"cls": "blue-200", "name": "Blue 200", "hex": "#76b4cf"},
        {"cls": "blue-300", "name": "Blue 300", "hex": "#027da8"}
      ]
    },
    {
      "name": "Cyan",
      "variants": [
        {"cls": "cyan-100", "name": "Cyan 100", "hex": "#a7d4d1"},
        {"cls": "cyan-200", "name": "Cyan 200", "hex": "#57b3bd"},
        {"cls": "cyan-300", "name": "Cyan 300", "hex": "#3e8793"},
        {"cls": "cyan-400", "name": "Cyan 400", "hex": "#497280"},
        {"cls": "cyan-500", "name": "Cyan 500", "hex": "#004958"}
      ]
    },
    {
      "name": "Orange",
      "variants": [
        {"cls": "orange-100", "name": "Orange 100", "hex": "#f2d29f"},
        {"cls": "orange-200", "name": "Orange 200", "hex": "#f1ae7b"},
        {"cls": "orange-300", "name": "Orange 300", "hex": "#ed9654"}
      ]
    },
    {
      "name": "Violet",
      "variants": [
        {"cls": "violet-100", "name": "Violet 100", "hex": "#edc8bd"},
        {"cls": "violet-200", "name": "Violet 200", "hex": "#d28c94"},
        {"cls": "violet-300", "name": "Violet 300", "hex": "#8d415f"},
        {"cls": "violet-400", "name": "Violet 400", "hex": "#840048"},
        {"cls": "violet-500", "name": "Violet 500", "hex": "#670047"}
      ]
    },
    {
      "name": "Red",
      "variants": [
        {"cls": "red-600", "name": "Red 600", "hex": "#d60d53"}
      ]
    },
    {
      "name": "Pirati",
      "variants": [
        {"cls": "pirati-yellow", "name": "Yellow", "hex": "#fec934"}
      ]
    }
  ]
}

source/_meta/_00-head.mustache

100755 → 100644
+0 −1
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@

    <link rel="stylesheet" href="../../css/styles.css?{{ cacheBuster }}" media="all" />
    <link rel="stylesheet" href="../../css/pattern-scaffolding.css?{{ cacheBuster }}" media="all" />
    <script src="https://kit.fontawesome.com/cbdc6198f3.js" crossorigin="anonymous"></script>

    <!-- Begin Pattern Lab (Required for Pattern Lab to run properly) -->
    {{{ patternLabHead }}}

source/_meta/_01-foot.mustache

100755 → 100644
+7 −6
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  <!--DO NOT REMOVE-->
  {{{ patternLabFoot }}}

  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.js"></script>
  <script src="../../js/main.bundle.js?{{ cacheBuster }}"></script>

  <script>
@@ -15,13 +15,14 @@
     */
    var idx = location.pathname.indexOf("/patterns");
    var prefix = location.pathname.substring(0, idx);

    if (prefix != "") {
    var anchors = document.querySelectorAll('a[data-href]');

    for (var i = 0; i < anchors.length; i++) {
      var anchor = anchors[i];
      if (prefix != "") {
        anchor.setAttribute('href', prefix +  anchor.dataset.href);
      } else {
        anchor.setAttribute('href', anchor.dataset.href);
      }
    }
  </script>
Original line number Diff line number Diff line
{{# brandColors }}
  <h2 class="head-alt-sm mb-4 mt-8">{{ name }}</h2>
  <div class="grid gap-4 grid-cols-2 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8">
  <div class="card flex flex-col">
    <div class="h-32 bg-black"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Black</p>
      <p>#000000</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-white"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">White</p>
      <p>#ffffff</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-green-100"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Green 100</p>
      <p>#29bc51</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-green-200"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Green 200</p>
      <p>#26b34b</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-green-300"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Green 300</p>
      <p>#22a244</p>
    </div>
  </div>
    {{# variants }}
      {{> molecules-color-swatch }}
    {{/ variants }}
  </div>
{{/ brandColors }}
Original line number Diff line number Diff line
<div class="grid gap-4 grid-cols-2 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8">
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-50"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 50</p>
      <p>#f7f7f7</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-100"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 100</p>
      <p>#f3f3f3</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-125"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 125</p>
      <p>#f0f0f0</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-150"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 150</p>
      <p>#00000012</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-200"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 200</p>
      <p>#adadad</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-300"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 300</p>
      <p>#4c4c4c</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-400"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 400</p>
      <p>#343434</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-500"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 500</p>
      <p>#303132</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-600"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 600</p>
      <p>#262626</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-700"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 700</p>
      <p>#202020</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-grey-800"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Grey 800</p>
      <p>#1f1f1f</p>
    </div>
  </div>
  {{# greyColors }}
    {{> molecules-color-swatch }}
  {{/ greyColors }}
</div>
Original line number Diff line number Diff line
<div class="grid gap-4 grid-cols-2 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8">
  <div class="card flex flex-col">
    <div class="h-32 bg-red-100"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Red 100</p>
      <p>#d6151b</p>
    </div>
  </div>
  <div class="card flex flex-col">
    <div class="h-32 bg-red-200"></div>
    <div class="card__body p-2 flex">
      <p class="font-bold flex-grow">Red 200</p>
      <p>#d6151b</p>
    </div>
  </div>
</div>
Original line number Diff line number Diff line
<div>
  <h1 class="head-alt-xl text-shadow-xs">{{ headline.short }}</h1>
  <h1 class="head-alt-xl text-shadow-sm">{{ headline.short }}</h1>
  <h1 class="head-alt-xl text-shadow">{{ headline.short }}</h1>
  <h1 class="head-alt-xl text-shadow-md">{{ headline.short }}</h1>
  <h1 class="head-alt-xl text-shadow-lg">{{ headline.short }}</h1>
</div>
Original line number Diff line number Diff line
<button class="btn btn--icon {{ classes }}">
<button class="btn btn--icon {{ classes }}" {{# disabled }}disabled{{/ disabled }}>
  <div class="btn__body-wrap">
    <div class="btn__body {{ bodyClasses }}">{{ cta }}</div>
    <div class="btn__icon {{ iconClasses }}">
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-button(classes: "btn--black") }}
    {{> atoms-basic-button(classes: "btn--grey-800") }}
    {{> atoms-basic-button(classes: "btn--grey-700") }}
    {{> atoms-basic-button(classes: "btn--grey-500") }}
    {{> atoms-basic-button(classes: "btn--grey-125") }}
    {{> atoms-basic-button(classes: "btn--white") }}
    {{> atoms-basic-button(classes: "btn--white btn--fading") }}
    {{> atoms-basic-button(classes: "btn--green-100") }}
    {{> atoms-basic-button(classes: "btn--red-100") }}
    {{> atoms-basic-button(classes: "btn--blue-300") }}
    {{> atoms-basic-button(classes: "btn--cyan-200") }}
    {{> atoms-basic-button(classes: "btn--green-400") }}
    {{> atoms-basic-button(classes: "btn--green-300") }}
    {{> atoms-basic-button(classes: "btn--orange-300") }}
    {{> atoms-basic-button(classes: "btn--violet-400") }}
    {{> atoms-basic-button(classes: "btn--violet-500") }}
    {{> atoms-basic-button(classes: "btn--red-600") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-button(classes: "btn--black", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--grey-700", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--grey-500", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--grey-125", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--white", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--blue-300", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--cyan-200", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--green-400", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--green-300", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--orange-300", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--violet-400", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--violet-500", disabled: true) }}
    {{> atoms-basic-button(classes: "btn--red-600", disabled: true) }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-icon-button(classes: "btn--black") }}
    {{> atoms-icon-button(classes: "btn--grey-800") }}
    {{> atoms-icon-button(classes: "btn--grey-700") }}
    {{> atoms-icon-button(classes: "btn--grey-500") }}
    {{> atoms-icon-button(classes: "btn--grey-125") }}
    {{> atoms-icon-button(classes: "btn--white") }}
    {{> atoms-icon-button(classes: "btn--white btn--fading") }}
    {{> atoms-icon-button(classes: "btn--green-100") }}
    {{> atoms-icon-button(classes: "btn--red-100") }}
    {{> atoms-icon-button(classes: "btn--blue-300") }}
    {{> atoms-icon-button(classes: "btn--cyan-200") }}
    {{> atoms-icon-button(classes: "btn--green-400") }}
    {{> atoms-icon-button(classes: "btn--green-300") }}
    {{> atoms-icon-button(classes: "btn--orange-300") }}
    {{> atoms-icon-button(classes: "btn--violet-400") }}
    {{> atoms-icon-button(classes: "btn--violet-500") }}
    {{> atoms-icon-button(classes: "btn--red-600") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-icon-button(classes: "btn--black", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--grey-700", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--grey-500", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--grey-125", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--white", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--blue-300", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--cyan-200", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--green-400", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--green-300", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--orange-300", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--violet-400", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--violet-500", disabled: true) }}
    {{> atoms-icon-button(classes: "btn--red-600", disabled: true) }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-button(classes: "btn--black btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--grey-800 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--grey-700 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--grey-500 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--grey-125 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--white btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--white btn--fading btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--green-100 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--red-100 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--blue-300 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--cyan-200 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--green-400 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--green-300 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--orange-300 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--violet-400 btn--hoveractive") }}
    {{> atoms-basic-button(classes: "btn--violet-500 btn--hoveractive") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-icon-button(classes: "btn--black btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--grey-800 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--grey-700 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--grey-500 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--grey-125 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--white btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--white btn--fading btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--green-100 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--red-100 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--blue-300 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--cyan-200 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--green-400 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--green-300 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--orange-300 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--violet-400 btn--hoveractive") }}
    {{> atoms-icon-button(classes: "btn--violet-500 btn--hoveractive") }}
  </div>
</div>
Original line number Diff line number Diff line
<button class="btn btn--inline-icon btn--overlay {{ baseColor }}{{^ baseColor }}btn--grey-800{{/ baseColor }} {{ overlayColor }}{{^ overlayColor }}btn--overlay-red-100{{/ overlayColor }} {{ classes }}">
  <div class="btn__body {{ bodyClasses }}"><i class="btn__inline-icon {{ icon }}"></i> {{ cta }}</div>
</button>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-button(cta: "btn--to-black", classes: "btn--hoveractive btn--to-black") }}
    {{> atoms-basic-button(cta: "btn--to-grey-700", classes: "btn--hoveractive btn--to-grey-700") }}
    {{> atoms-basic-button(cta: "btn--to-grey-500", classes: "btn--hoveractive btn--to-grey-500") }}
    {{> atoms-basic-button(cta: "btn--to-grey-125", classes: "btn--hoveractive btn--to-grey-125") }}
    {{> atoms-basic-button(cta: "btn--to-white", classes: "btn--hoveractive btn--to-white") }}
    {{> atoms-basic-button(cta: "btn--to-blue-300", classes: "btn--hoveractive btn--to-blue-300") }}
    {{> atoms-basic-button(cta: "btn--to-cyan-200", classes: "btn--hoveractive btn--to-cyan-200") }}
    {{> atoms-basic-button(cta: "btn--to-green-400", classes: "btn--hoveractive btn--to-green-400") }}
    {{> atoms-basic-button(cta: "btn--to-green-300", classes: "btn--hoveractive btn--to-green-300") }}
    {{> atoms-basic-button(cta: "btn--to-orange-300", classes: "btn--hoveractive btn--to-orange-300") }}
    {{> atoms-basic-button(cta: "btn--to-violet-400", classes: "btn--hoveractive btn--to-violet-400") }}
    {{> atoms-basic-button(cta: "btn--to-violet-500", classes: "btn--hoveractive btn--to-violet-500") }}
    {{> atoms-basic-button(cta: "btn--to-brands-facebook", classes: "btn--hoveractive btn--to-brands-facebook") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-icon-button(cta: "btn--to-black", classes: "btn--hoveractive btn--to-black") }}
    {{> atoms-icon-button(cta: "btn--to-grey-700", classes: "btn--hoveractive btn--to-grey-700") }}
    {{> atoms-icon-button(cta: "btn--to-grey-500", classes: "btn--hoveractive btn--to-grey-500") }}
    {{> atoms-icon-button(cta: "btn--to-grey-125", classes: "btn--hoveractive btn--to-grey-125") }}
    {{> atoms-icon-button(cta: "btn--to-white", classes: "btn--hoveractive btn--to-white") }}
    {{> atoms-icon-button(cta: "btn--to-blue-300", classes: "btn--hoveractive btn--to-blue-300") }}
    {{> atoms-icon-button(cta: "btn--to-cyan-200", classes: "btn--hoveractive btn--to-cyan-200") }}
    {{> atoms-icon-button(cta: "btn--to-green-400", classes: "btn--hoveractive btn--to-green-400") }}
    {{> atoms-icon-button(cta: "btn--to-green-300", classes: "btn--hoveractive btn--to-green-300") }}
    {{> atoms-icon-button(cta: "btn--to-orange-300", classes: "btn--hoveractive btn--to-orange-300") }}
    {{> atoms-icon-button(cta: "btn--to-violet-400", classes: "btn--hoveractive btn--to-violet-400") }}
    {{> atoms-icon-button(cta: "btn--to-violet-500", classes: "btn--hoveractive btn--to-violet-500") }}
    {{> atoms-icon-button(cta: "btn--to-brands-facebook", classes: "btn--hoveractive btn--to-brands-facebook") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-overlay-button(overlayColor: "btn--overlay-red-100") }}
    {{> atoms-overlay-button(overlayColor: "btn--overlay-brands-facebook") }}
    {{> atoms-basic-button(classes: "text-sm btn--loading" )}}
    {{> atoms-basic-button(classes: "text-base btn--loading" )}}
    {{> atoms-basic-button(classes: "text-lg btn--loading" )}}
  </div>
</div>
Original line number Diff line number Diff line
<span class="inline-flex h-4 w-4 mr-4 relative">
  <span class="animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 bg-green-400"></span>
  <span class="relative inline-flex rounded-full w-4 h-4 mr-4 bg-green-400" title="Online"></span>
</span>
Original line number Diff line number Diff line
<ul class="unordered-list unordered-list--dense">
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
</ul>
Original line number Diff line number Diff line
<ul class="unordered-list unordered-list--linked {{ classes }}">
  <li>
    <a href="#" class="font-bold">{{ cta }}</a>
    <a href="#" class="font-bold content-block--nostyle">{{ cta }}</a>
  </li>
  <li>
    <a href="#">{{ cta }}</a>
    <a href="#" class="content-block--nostyle">{{ cta }}</a>
  </li>
  <li>
    <a href="#">{{ cta }}</a>
    <a href="#" class="content-block--nostyle">{{ cta }}</a>
  </li>
  <li>
    <a href="#">{{ cta }}</a>
    <a href="#" class="content-block--nostyle">{{ cta }}</a>
  </li>
</ul>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list leading-tight">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list leading-snug">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list leading-normal">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list leading-relaxed">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list text-xs">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list text-sm">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list text-lg">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
  <div class="inline-flex flex-col space-y-2">
    <ul class="unordered-list text-xl">
      <li>
        {{{ list.item }}}
        <ul class="unordered-list">
          <li>{{{ list.item }}}</li>
          <li>{{{ list.item }}}</li>
        </ul>
      </li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
      <li>{{{ list.item }}}</li>
    </ul>
  </div>
</div>
Original line number Diff line number Diff line
<ul class="unordered-list">
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
  <li>{{{ list.item }}}</li>
</ul>
Original line number Diff line number Diff line
<a href="mailto:example@example.com" class="contact-line contact-line--responsive {{ classes }}">
  <i class="{{ icon }}"></i>{{ caption }}{{^caption}}example@example.com{{/caption}}
<a href="mailto:example@example.com" class="contact-line contact-line--responsive icon-link {{ classes }}">
  <i class="{{ icon }}"></i>
  <span>{{ caption }}{{^caption}}example@example.com{{/caption}}</span>
</a>
Original line number Diff line number Diff line
@@ -3,9 +3,9 @@
    {{> atoms-basic-flag(classes: "bg-black text-white") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-flag(classes: "bg-green-100 text-white") }}
    {{> atoms-basic-flag(classes: "bg-green-200 text-white") }}
  </div>
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-basic-flag(classes: "bg-red-100 text-white") }}
    {{> atoms-basic-flag(classes: "bg-blue-100 text-white") }}
  </div>
</div>
Original line number Diff line number Diff line
<input type="text" class="text-input form-field__control {{ classes }}" value="" placeholder="{{ placeholder }}{{^ placeholder }}{{ form.placeholder }}{{/ placeholder }}" {{# disabled }}disabled{{/ disabled }} {{# readonly }}readonly{{/ readonly }} />
Original line number Diff line number Diff line
<div class="select">
  <select class="select__control form-field__control {{ classes }}" value="" {{# disabled }}disabled{{/ disabled }} {{# readonly }}readonly{{/ readonly }}>
    <option>Option 1</option>
    <option>Option 2</option>
    <option>Option 3</option>
    <option>Option 4</option>
  </select>
</div>
Original line number Diff line number Diff line
<div class="checkbox form-field__control">
  <input type="checkbox" id="checkbox_1" {{# disabled }}disabled{{/ disabled }} {{# readonly }}readonly{{/ readonly }}>
  <label for="checkbox_1">{{ excerpt.short }}</label>
</div>
Original line number Diff line number Diff line
<textarea class="text-input form-field__control {{ classes }}" value="" rows="{{ rows }}{{^ rows }}10{{/ rows }}" cols="40" placeholder="{{ placeholder }}{{^ placeholder }}{{ form.placeholder }}{{/ placeholder }}" {{# disabled }}disabled{{/ disabled }} {{# readonly }}readonly{{/ readonly }}>{{ textareaContent }}</textarea>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-tooltip(classes: "tooltip--black") }}
    {{> atoms-tooltip(classes: "tooltip--grey-125") }}
    {{> atoms-tooltip(classes: "tooltip--red-600") }}
    {{> atoms-tooltip(classes: "tooltip--yellow-400") }}
    {{> atoms-tooltip(classes: "tooltip--green-400") }}
    {{> atoms-tooltip(classes: "tooltip--blue-300") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--black tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--black tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--black tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--black tooltip--right") }}
    </div>
  </div>
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--grey-125 tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--grey-125 tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--grey-125 tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--grey-125 tooltip--right") }}
    </div>
  </div>
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--red-600 tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--red-600 tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--red-600 tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--red-600 tooltip--right") }}
    </div>
  </div>
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--yellow-400 tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--yellow-400 tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--yellow-400 tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--yellow-400 tooltip--right") }}
    </div>
  </div>
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--green-400 tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--green-400 tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--green-400 tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--green-400 tooltip--right") }}
    </div>
  </div>
  <div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--blue-300 tooltip--top") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--blue-300 tooltip--bottom") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--blue-300 tooltip--left") }}
    </div>
    <div class="p-8">
      {{> atoms-tooltip(pos: "tooltip--blue-300 tooltip--right") }}
    </div>
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-tooltip(classes: "tooltip--dark") }}
    {{> atoms-tooltip(classes: "tooltip--light") }}
    {{> atoms-tooltip(classes: "tooltip--default") }}
    {{> atoms-tooltip(classes: "tooltip--error") }}
    {{> atoms-tooltip(classes: "tooltip--warning") }}
    {{> atoms-tooltip(classes: "tooltip--success") }}
    {{> atoms-tooltip(classes: "tooltip--info") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-alert(classes: "alert--black", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--grey-125", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--red-600", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--yellow-400", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--green-400", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--blue-300", icon: "ico--pirati") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-alert(classes: "alert--black alert--faded", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--grey-125 alert--faded", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--red-600 alert--faded", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--yellow-400 alert--faded", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--green-400 alert--faded", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--blue-300 alert--faded", icon: "ico--pirati") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="inline-flex flex-col sm:flex-row space-y-8 sm:space-y-0 sm:space-x-8">
  <div class="inline-flex flex-col space-y-2">
    {{> atoms-alert(classes: "alert--dark", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--light", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--error", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--warning", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--success", icon: "ico--pirati") }}
    {{> atoms-alert(classes: "alert--info", icon: "ico--pirati") }}
  </div>
</div>
Original line number Diff line number Diff line
<span class="alert {{ classes }}">
  {{# icon }}
    <i class="alert__icon {{ icon }}"></i>
  {{/ icon }}
  <span>{{ excerpt.short }}</span>
</span>
Original line number Diff line number Diff line
<ul class="unordered-list">
  <li>{{ headline.short }}</li>
  <li>{{ headline.short }}</li>
  <li>{{ headline.short }}</li>
  <li>{{ headline.short }}</li>
  <li>{{ headline.short }}</li>
  <li>{{ headline.short }}</li>
</ul>
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
    {{^ hideOccupation }}
      <p class="badge__occupation">{{ occupation }}{{^ occupation }}{{ person.occupation }}{{/ occupation }}</p>
    {{/ hideOccupation}}
    {{> atoms-responsive-contact-line(icon: "fas fa-phone", caption: "+420 777 123 123", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "fas fa-envelope", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "ico--phone", caption: "+420 777 123 123", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "ico--envelope", classes: "badge__link") }}
  </div>
</div>
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
    {{^ hideOccupation }}
      <p class="badge__occupation">{{ occupation }}{{^ occupation }}{{ person.occupation }}{{/ occupation }}</p>
    {{/ hideOccupation }}
    {{> atoms-responsive-contact-line(icon: "fas fa-phone", caption: "+420 777 123 123", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "fas fa-envelope", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "ico--phone", caption: "+420 777 123 123", classes: "badge__link") }}
    {{> atoms-responsive-contact-line(icon: "ico--envelope", classes: "badge__link") }}
  </div>
</div>
Original line number Diff line number Diff line
<div class="social-icon-group space-x-2 {{ classes }}">
  {{> atoms-basic-social-icon(icon: "fab fa-twitter") }}
  {{> atoms-basic-social-icon(icon: "fas fa-rss") }}
  {{> atoms-basic-social-icon(icon: "fab fa-instagram") }}
  {{> atoms-basic-social-icon(icon: "fab fa-flickr") }}
  {{> atoms-basic-social-icon(icon: "fas fa-envelope") }}
  {{> atoms-basic-social-icon(icon: "ico--twitter") }}
  {{> atoms-basic-social-icon(icon: "ico--feed") }}
  {{> atoms-basic-social-icon(icon: "ico--youtube") }}
  {{> atoms-basic-social-icon(icon: "ico--instagram") }}
  {{> atoms-basic-social-icon(icon: "ico--flickr") }}
  {{> atoms-basic-social-icon(icon: "ico--envelope") }}
</div>
Original line number Diff line number Diff line
<div class="social-icon-group space-x-0/5 {{ classes }}">
  {{> atoms-filled-social-icon(classes: "bg-brands-facebook text-white social-icon--5", icon: "fab fa-facebook") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-twitter text-white social-icon--5", icon: "fab fa-twitter") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-linkedin text-white social-icon--5", icon: "fab fa-linkedin") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-facebook text-white social-icon--5", icon: "ico--facebook") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-twitter text-white social-icon--5", icon: "ico--twitter") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-linkedin text-white social-icon--5", icon: "ico--linkedin") }}
</div>
Original line number Diff line number Diff line
<div class="social-icon-group {{ classes }}">
  {{> atoms-filled-social-icon(classes: "bg-brands-facebook text-white text-sm social-icon--4", icon: "fab fa-facebook") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-twitter text-white text-sm social-icon--4", icon: "fab fa-twitter") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-linkedin text-white text-sm social-icon--4", icon: "fab fa-linkedin") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-facebook text-white text-sm social-icon--4", icon: "ico--facebook") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-twitter text-white text-sm social-icon--4", icon: "ico--twitter") }}
  {{> atoms-filled-social-icon(classes: "bg-brands-linkedin text-white text-sm social-icon--4", icon: "ico--linkedin") }}
</div>
Original line number Diff line number Diff line
<div class="card">
  <div class="card__body">
    <div class="flex items-center justify-between mb-4">
      <h1 class="card-headline">Ukončit rozpravu?</h1>
      <button><i class="ico--cross"></i></button>
    </div>
    <p class="card-body-text">Opravdu chcete ukončit rozpravu?</p>
  </div>
  <div class="card-actions space-x-1">
    {{> atoms-basic-button(classes: "btn--blue-300 text-sm", cta: "Ukončit") }}
    {{> atoms-basic-button(classes: "btn--red-600 text-sm", cta: "Zrušit") }}
  </div>
</div>


<div class="card">
  <div class="card__body">
    <div class="flex items-center justify-between mb-4">
      <h1 class="card-headline">Ukončit rozpravu?</h1>
      <button><i class="ico--cross"></i></button>
    </div>
    <p class="card-body-text">Opravdu chcete ukončit rozpravu?</p>
  </div>
  <div class="card-actions card-actions--right space-x-1">
    {{> atoms-basic-button(classes: "btn--blue-300 text-sm", cta: "Ukončit") }}
    {{> atoms-basic-button(classes: "btn--red-600 text-sm", cta: "Zrušit") }}
  </div>
</div>

File changed.

Preview size limit exceeded, changes collapsed.

source/css/utils.pcss

deleted100644 → 0
+0 −8

File deleted.

Preview size limit exceeded, changes collapsed.

+7 −0

File added.

Preview size limit exceeded, changes collapsed.

source/icons/demo.html

0 → 100644
+1733 −0

File added.

Preview size limit exceeded, changes collapsed.

source/icons/style.css

0 → 100644
+387 −0

File added.

Preview size limit exceeded, changes collapsed.

source/js/.gitkeep

100755 → 100644
+0 −0

File mode changed from 100755 to 100644.

source/js/apps.js

deleted100644 → 0
+0 −14

File deleted.

Preview size limit exceeded, changes collapsed.

+70 −12

File changed.

Preview size limit exceeded, changes collapsed.

File changed.

Preview size limit exceeded, changes collapsed.

+186 −96

File changed.

Preview size limit exceeded, changes collapsed.