[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-489278-105":59,"doc-detail-489278-en":130,"doc-similar-489278":160},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","nextjs-css-styling","NextJS - CSS Styling","","Training material on implementing CSS styling in a NextJS full-stack web app using ReactJS and NodeJS. Covers the target audience and the course agenda, including global styles via global.css and root layout.tsx, Tailwind integration with class names, and component-level styling using CSS Modules. Also explains conditional styling with the clsx library and briefly references other styling alternatives. Includes step-by-step setup for Visual Studio Code on Windows, Linux, and macOS and shows how to apply styles from the dev server.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/nextjs-css-styling/489278/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/nextjs-css-styling/489278.png","ImageObject",300,407,{"name":92,"@type":93},"kopisore","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-10-01",true,{"@type":102,"interactionType":103,"userInteractionCount":56},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the agenda for CSS styling in NextJS?","Question",{"text":112,"@type":113},"The agenda covers VSCode installation, applying global styles, adding Tailwind, using CSS Modules, using the clsx library for conditional classes, and reviewing other styling solutions.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do you apply styles globally in a NextJS project?",{"text":117,"@type":113},"Import global.css into the root layout.tsx, so the styles wrap all underlying layers uniformly.",{"name":119,"@type":110,"acceptedAnswer":120},"What approach is recommended for styling a specific UI component?",{"text":121,"@type":113},"Use CSS Modules by creating a dedicated .css file for that component and importing it into the component.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},489278,1790930956,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":56,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},962090880963,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Learning  \nNextJS. CSS Styling  \nDmitry Makarenkov, Ph.D. (Tech.)  \n[https://dmpsy.club](https://dmpsy.club)  \nNextJS >= ReactJS + NodeJS  \nTarget Audience  \nThe NextJS adepts, wishing to follow modern trends in full-stack Web apps development  \nMagic formula:  \nNextJS > = ReactJS (front-end) + NodeJS (back-end)  \nAgenda  \n\n| 1 | Visual Studio Code Installation | VSCode Installation from Scratch |\n| --- | --- | --- |\n| 2 | Global Styles | To apply styles globally to all ui components, Import global.css into the root layout.tsx |\n| 3 | Tailwind | Add Tailwind when creating an app and use its class names |\n| 4 | CSS Modules | To apply styles to a particular ui component, create a dedicated * .css file and import it to that ui component |\n| 5 | Using clsx Library | Use the clsx library to toggle class names conditionally, say, depending on a variable value |\n| 6 | Other Styling Solutions | Well-known Tailwind & CSS alternatives |\n\nNextJS ofﬁcial training: [https://nextjs.org/learn/dashboard-app/css-styling](https://nextjs.org/learn/dashboard-app/css-styling)  \nInitial Installation of VSCode on Windows  \n\n| 1 | Open [https://code.visualstudio.com/download](https://code.visualstudio.com/download) |  |  |\n| --- | --- | --- | --- |\n| 2 | Press | |  |\n| 3 | Run | |  |\n| 4 | Verify installation:\u003Cbr>code-v\u003Cbr>code \\# to start VSCode |  | |\n\nInitial Installation of VSCode on Linux  \n\n| 1 | Open [https://code.visualstudio.com/download](https://code.visualstudio.com/download) |  |\n| --- | --- | --- |\n| 2 | Press | |\n| 3 | Run\u003Cbr>With | |\n| 4 | Verify installation:\u003Cbr>code-v\u003Cbr>code \\# to start VSCode |  |\n\nInitial Installation of VSCode on Linux (2)  \n\n|  | Alternative method |\n| --- | --- |\n| 1 | Install snap |\n| 2 | Install Visual Studio Code:\u003Cbr>sudo snap install —classic code |\n| 3 | Verify installation from Terminal:\u003Cbr>code-v\u003Cbr>code \\# and run VSCode |\n\nInitial Installation of VSCode on MacOS  \n\n| 1 | Open [https://code.visualstudio.com/download](https://code.visualstudio.com/download) |  |  |\n| --- | --- | --- | --- |\n| 2 | Press | |  |\n| 3 | Unzip * .zip file\u003Cbr>Move *.dmg file to Applications |  | |\n| 4 | Verify installation:\u003Cbr>code-v\u003Cbr>code \\# to start VSCode |  |  |\n\nApplying Styles Globally (from global.css)  \napp/layout.tsx  \nimport ‘@/app/ui/global.css’  \napp/page.tsx  \n\n| children\u003Cbr>\u003Cbr>app/login/layout.tsx\u003Cbr>\u003Cbr>app/login/page.tsx | \u003Cbr>app/invoices/layout.tsx\u003Cbr>\u003Cbr>app/invoices/page.tsx |\n| --- | --- |\n\nThe project structure resembles a (matryoshka) nesting doll; all underlying layers are wrapped in the root layout.tsx. Accordingly, if we want to style the project uniformly, the global.css style ﬁle must be imported into the root layout.tsx  \nApplying Styles Globally (from global.css) (2)  \n\n| 1 | Start the dev server | cd nexxt-app\u003Cbr>pnpm dev |\n| --- | --- | --- |\n| 2 | Import styles | app/layout.tsx:\u003Cbr>Import ‘@app/ui/global.css’ |\n| 3 | Save and see changes at\u003Cbr>localhost:3000 | Ctrl-S \\# to save changes |\n\nUsing Tailwind (className) Class Names  \nAdding Tailwind to global.css:  \n@tailwind base;  \n@tailwind components;  \n@tailwind utilities;","cbCairkA4AVeByCY","https://ap.wps.com/l/cbCairkA4AVeByCY","pdf",634468,"English","# Visual Studio Code installation\n## Windows\n## Linux\n## Linux (2)\n## macOS\n# Applying styles globally\n## Using global.css with layout.tsx\n# Using Tailwind\n# CSS Modules\n# Using clsx library\n# Other styling solutions","[{\"question\":\"What is the agenda for CSS styling in NextJS?\",\"answer\":\"The agenda covers VSCode installation, applying global styles, adding Tailwind, using CSS Modules, using the clsx library for conditional classes, and reviewing other styling solutions.\"},{\"question\":\"How do you apply styles globally in a NextJS project?\",\"answer\":\"Import global.css into the root layout.tsx, so the styles wrap all underlying layers uniformly.\"},{\"question\":\"What approach is recommended for styling a specific UI component?\",\"answer\":\"Use CSS Modules by creating a dedicated .css file for that component and importing it into the component.\"}]","NextJS - CSS Styling | PDF",1790821930,48,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/76e9c82615793f35143d128ae416f6c6.webp",983,552,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5566311efd5cf812937aef524299600e.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0117015f7da9476326c597241d54e867.webp",981,551,{"page_no":19,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/19cd8fdc3e2ac88960b87f923e00cd45.webp",980,{"list":161,"token":66},[162,169,175,181,187,193,199,205,212,219],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":30,"create_tm":168},489290,"React JS Full Course E-book Content - Introduction to React - Course Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927222694/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=B7%2FZ%2F6eb9UTniusDPmNKnVBN%2BWE%3D","react-js-full-course-e-book-content-introduction-to-react-course-outline",16,1790822011,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":14,"category_name":30,"create_tm":174},760103,"Android Studio Flamingo Essentials - Java Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495597/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nAcqubFnp%2BaM0xdYE9Vxz%2FXPvNc%3D","android-studio-flamingo-essentials-java-edition",1795898554,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":19,"category_name":30,"create_tm":180},681169,"Depot - Iteration A1 - Creating the Product Maintenance Application","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998653636/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=63u9MkUF8tdM9BA9cZlcESQnwSw%3D","depot-iteration-a1-creating-the-product-maintenance-application",1793940561,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":29,"category_name":30,"create_tm":186},693037,"Cascading Style Sheets (CSS) - CS142 Lecture Notes - CSS 1 - Driving problem behind CSS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004257728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=bKEhzavb4mMRJaDMluUHhxW4M7I%3D","cascading-style-sheets-css-cs142-lecture-notes-css-1-driving-problem-behind-css",1794246439,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":29,"category_name":30,"create_tm":192},687482,"Visual Studio Code Distilled: Evolved Code Editing - read online","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000648869/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=OmM8eX6K5vdxY8w7wUh%2B9TBFIUg%3D","visual-studio-code-distilled-evolved-code-editing-read-online",1794083803,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":34,"category_name":30,"create_tm":198},693041,"How To Build a Website with CSS and HTML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005053985/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nb0rZfKT6EV5pESTvTzffHFWXnU%3D","how-to-build-a-website-with-css-and-html",1794246454,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":34,"category_name":30,"create_tm":204},689156,"Thermo-Calc Documentation Set - Version 2020b - Installation Guide and Licensing Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001524699/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=CNl1IHGa4jRUSQ38i%2B7aXbL4Zi8%3D","thermo-calc-documentation-set-version-2020b-installation-guide-and-licensing-setup",1794097891,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},391794,"INTERVIEW QUESTIONS FOR FULL STACK DEVELOPMENT - Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917406683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=wbymmRqcvDekGAtE3aeMASNofQE%3D","interview-questions-for-full-stack-development-interview-questions",21,1790358757,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},491462,"IntroductIon to CSS for Paged MedIa - Edition Sixth - February 15, 2019","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928195886/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=nd%2BJaHaeCbKjdu%2Fxkq4gFCmYdNs%3D","introduction-to-css-for-paged-media-edition-sixth-february-15-2019",12,1790849709,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":52,"category_name":30,"create_tm":224},692303,"Node.js Installation Guide - Install Node.js on Windows, Linux & Mac OS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003199787/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Xcs%2BOHE%2FA0mNtYApSCVwC56S9is%3D","nodejs-installation-guide-install-nodejs-on-windows-linux-mac-os",1794192929]