{"id":21826321,"url":"https://github.com/javigong/shopify-theme","last_synced_at":"2026-05-07T19:17:10.945Z","repository":{"id":122733356,"uuid":"545748959","full_name":"javigong/Shopify-Theme","owner":"javigong","description":"Creating a Shopify theme for an Online Store 2.0 (JSON Templates) using Shopify CLI, Liquid, \u0026 TailwindCSS","archived":false,"fork":false,"pushed_at":"2022-10-21T02:38:56.000Z","size":395,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-26T08:15:16.462Z","etag":null,"topics":["liquid-templating-engine","shopify-cli","shopify-theme","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javigong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-04T23:07:39.000Z","updated_at":"2023-03-07T13:05:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fbad969-8716-4e9e-8824-4b9aa079f0af","html_url":"https://github.com/javigong/Shopify-Theme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javigong%2FShopify-Theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javigong%2FShopify-Theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javigong%2FShopify-Theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javigong%2FShopify-Theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javigong","download_url":"https://codeload.github.com/javigong/Shopify-Theme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244795430,"owners_count":20511519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["liquid-templating-engine","shopify-cli","shopify-theme","tailwindcss"],"created_at":"2024-11-27T18:03:37.977Z","updated_at":"2025-10-29T00:11:33.941Z","avatar_url":"https://github.com/javigong.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How To Create a Shopify Theme\n\nCreating a Shopify theme for an Online Store 2.0 (JSON Templates) using Shopify CLI, Liquid, \u0026 TailwindCSS.\n\n## Initial Theme Setup\n\n- Create a basic theme structure:\n\n  `shopify theme init ThemeName --clone-url RepositoryThemeUrl`\n\n- Login Shopify Store:\n\n  `shopify login --store UrlOfShopifyStoreAdmin`\n\n- Select partner organization\n\n- Update/Sync theme to your development store\n\n  `shopify theme serve`\n\n## Tailwind CSS 2.2.7 setup\n\n- Check if you are logged in\n\n  `shopify whoami`\n\n- Update/Sync theme to your development store\n\n  `shopify theme serve`\n\n- Initialize npm package manager\n\n  `npm init -y`\n\n- Install Tailwind CSS\n\n  `npm install -D tailwindcss postcss autoprefixer`\n\n- Create a new postcss.config.js file adding the following code\n  ```jsx\n  module.exports = {\n    plugins: {\n      tailwindcss: {},\n      autoprefixer: {},\n    },\n  };\n  ```\n- Initialize tailwind.config.js\n\n`npx tailwindcss init`\n\n- Create new folder src\n\n- Create new file src/tailwind.css injecting the following tailwind features\n\n```css\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n```\n\n- Delete /assets/application.css.liquid file\n\n- Setup the Tailwind input and output css files\n  `npx tailwindcss -i ./src/tailwind.css -o ./assets/application.css`\n\n- Edit layout/theme.liquid file adding this code to the header\n\n```liquid\n{{ content_for_header }}\n    \u003c!-- Header hook for plugins --\u003e\n    {{ 'application.css' | asset_url | stylesheet_tag }}\n    \u003cscript src=\"{{ 'application.js' | asset_url }}\" async\u003e\u003c/script\u003e\n```\n\n## Tailwind CSS 3.0 setup\n\n- Check if you are logged in\n\n  `shopify whoami`\n\n- Update/Sync theme to your development store\n\n  `shopify theme serve`\n\n- Initialize npm package manager\n\n  `npm init -y`\n\n- Install Tailwind CSS\n\n  `npm install -D tailwindcss postcss autoprefixer`\n\n- Create a new postcss.config.js file adding the following code\n  ```jsx\n  module.exports = {\n    plugins: {\n      tailwindcss: {},\n      autoprefixer: {},\n    },\n  };\n  ```\n- Initialize tailwind.config.js\n\n`npx tailwindcss init`\n\n- Add the following code to tailwind.config.js\n\n```js\nmodule.exports = {\n  content: [\n    \"./assets/*.liquid\",\n    \"./layout/*.liquid\",\n    \"./sections/*.liquid\",\n    \"./snippets/*.liquid\",\n    \"./templates/*.liquid\",\n    \"./templates/**/*.liquid\",\n    // you can also directly select all the liquid and json files\n    // \"./**/*.{liquid,json}\",\n  ],\n  theme: {\n    extend: {},\n  },\n  plugins: [],\n};\n```\n\n- Create new folder src\n\n- Create new file src/tailwind.css injecting the following tailwind utility classes\n\n```css\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n```\n\n- Delete /assets/application.css.liquid file\n\n- Setup the Tailwind input and output css files with the utility classes with the watch flag\n  `npx tailwindcss -i ./src/tailwind.css -o ./assets/application.css --watch`\n\n- Edit layout/theme.liquid file adding this code to the header\n\n```liquid\n{{ content_for_header }}\n    \u003c!-- Header hook for plugins --\u003e\n    {{ 'application.css' | asset_url | stylesheet_tag }}\n    \u003cscript src=\"{{ 'application.js' | asset_url }}\" async\u003e\u003c/script\u003e\n```\n\n## JSON Templates\n\nhttps://shopify.dev/themes/architecture/templates/json-templates","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavigong%2Fshopify-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavigong%2Fshopify-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavigong%2Fshopify-theme/lists"}