{"componentChunkName":"component---src-templates-tailwindclass-js","path":"/tailwindcss/classes/tailwind-list-style-type/","result":{"data":{"site":{"siteMetadata":{"title":"Resources to help developers | Contrast | Devwares","docsLocation":""}},"mdx":{"fields":{"id":"5801d566-ce66-5660-ade6-f5141a451b13","title":"Tailwind CSS List Style Type","slug":"/classes/tailwind-list-style-type/"},"body":"var _excluded = [\"components\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"lastUpdated\": \"1 May 2024\",\n  \"title\": \"Tailwind CSS List Style Type\",\n  \"metaTitle\": \"Tailwind CSS List Style Type\",\n  \"metaDescription\": \"The list-style-type utility class in Tailwind CSS allows you to customize the appearance of list item markers (bullets or numbers) in unordered and ordered lists.\",\n  \"canonicalUrl\": \"https://windframe.dev/tailwind/classes/tailwind-list-style-type\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h1\", null, \"Tailwind List Style Type\"), mdx(\"p\", null, \"The list-style-type utility class in Tailwind CSS allows you to customize the appearance of list item markers (bullets or numbers) in unordered and ordered lists. With Tailwind's list-style-type class, you can easily change the style of list item markers to match your design requirements.\"), mdx(\"h2\", null, \"Applying List Style Type\"), mdx(\"p\", null, \"To apply a specific list style type to a list, you can use the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"list-{value}\"), \" utility class, where {value} represents the desired list style type. Here are some common list style types you can use:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"list-disc: Sets the list item markers as filled discs (default for unordered lists).\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"list-circle: Sets the list item markers as hollow circles.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"list-square: Sets the list item markers as squares.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"list-decimal: Sets the list item markers as decimal numbers (default for ordered lists).\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"list-decimal-leading-zero: Sets the list item markers as decimal numbers with leading zeros.\")), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-html\"\n  }, \"<ul class=\\\"list-disc\\\">\\n  <li>List item 1</li>\\n  <li>List item 2</li>\\n  <li>List item 3</li>\\n</ul>\\n\")), mdx(\"h2\", null, \"Preview\"), mdx(\"div\", {\n    className: \"rounded-t-xl overflow-hidden bg-red-100 p-4\"\n  }, mdx(\"div\", {\n    className: \"align-middle max-w-xs px-6 py-4 mx-auto bg-red-200 text-red-500 font-medium rounded-lg\"\n  }, mdx(\"ul\", {\n    className: \"list-disc\"\n  }, mdx(\"li\", null, \"List item 1\"), mdx(\"li\", null, \"List item 2\"), mdx(\"li\", null, \"List item 3\")))), mdx(\"h2\", null, \"Changing List Style Type\"), mdx(\"p\", null, \"If you want to change the list style type for a specific list or override the default style, you can simply apply the desired \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"list-{value}\"), \" class. For example, to use decimal numbers as list item markers in an unordered list, you can use the list-decimal class.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-html\"\n  }, \"<ul class=\\\"list-decimal\\\">\\n  <li>List item 1</li>\\n  <li>List item 2</li>\\n  <li>List item 3</li>\\n</ul>\\n\")), mdx(\"h2\", null, \"Preview\"), mdx(\"div\", {\n    className: \"rounded-t-xl overflow-hidden bg-blue-100 p-4\"\n  }, mdx(\"div\", {\n    className: \"align-middle max-w-xs px-6 py-4 mx-auto bg-blue-200 text-blue-500 font-medium rounded-lg\"\n  }, mdx(\"ul\", {\n    className: \"list-decimal\"\n  }, mdx(\"li\", null, \"List item 1\"), mdx(\"li\", null, \"List item 2\"), mdx(\"li\", null, \"List item 3\")))), mdx(\"h2\", null, \"Responsive List Style Type\"), mdx(\"p\", null, \"Tailwind CSS allows you to apply list style type classes responsively at different breakpoints. To use responsive list style type classes, you can append the breakpoint prefix to the utility class. For example, md:list-circle sets the list item markers as hollow circles starting from the medium breakpoint and above.\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-html\"\n  }, \"<ul class=\\\"list-disc md:list-circle\\\">\\n  <li>List item 1</li>\\n  <li>List item 2</li>\\n  <li>List item 3</li>\\n</ul>\\n\")), mdx(\"p\", null, \"In the above example, the list item markers are set as filled discs by default (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"list-disc\"), \"), but starting from the medium breakpoint and above, they change to hollow circles (\", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"md:list-circle\"), \").\"), mdx(\"h2\", null, \"Tailwind List Style type Class Table\"), mdx(\"table\", null, mdx(\"thead\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"thead\"\n  }, mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Class\"), mdx(\"th\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"Properties\"))), mdx(\"tbody\", {\n    parentName: \"table\"\n  }, mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-none\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-style-type: none;\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-disc\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-style-type: disc;\")), mdx(\"tr\", {\n    parentName: \"tbody\"\n  }, mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-decimal\"), mdx(\"td\", {\n    parentName: \"tr\",\n    \"align\": null\n  }, \"list-style-type: decimal;\")))), mdx(\"h2\", null, \"Windframe Tailwind blocks\"), mdx(\"p\", null, mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://app.windframe.dev/editor?id=blog1\"\n  }, \"blog\")));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#tailwind-list-style-type","title":"Tailwind List Style Type","items":[{"url":"#applying-list-style-type","title":"Applying List Style Type"},{"url":"#preview","title":"Preview"},{"url":"#changing-list-style-type","title":"Changing List Style Type"},{"url":"#preview-1","title":"Preview"},{"url":"#responsive-list-style-type","title":"Responsive List Style Type"},{"url":"#tailwind-list-style-type-class-table","title":"Tailwind List Style type Class Table"},{"url":"#windframe-tailwind-blocks","title":"Windframe Tailwind blocks"}]}]},"parent":{"__typename":"File","relativePath":"classes/tailwind-list-style-type.md"},"frontmatter":{"githubUrl":null,"metaTitle":"Tailwind CSS List Style Type","lastUpdated":"1 May 2024","metaDescription":"The list-style-type utility class in Tailwind CSS allows you to customize the appearance of list item markers (bullets or numbers) in unordered and ordered lists."}}},"pageContext":{"id":"5801d566-ce66-5660-ade6-f5141a451b13"}},"staticQueryHashes":["2619113677","2619113677","2619113677","2619113677","2619113677","2619113677","2619113677","2619113677","3309287076","3309287076","3706406642","3706406642","3706406642","4045616534","4045616534","956403285"]}