Abstract
A guide to paragraph and character styles for designers, photographers and filmmakers who lay out books, posters and portfolios. It explains what a style is, what a paragraph style controls, when to use a character style, how to create, apply, override and redefine styles in InDesign, including Based On, Next Style and nested styles, and how styles work in Photoshop. It gives a complete style sheet for a photography portfolio book and shows how to make the styles with AI: a style sheet prompt, an InDesign script that builds every style, and a Photoshop specimen script.
Keywords: paragraph styles, character styles, InDesign styles, Photoshop paragraph styles, Based On, Next Style, nested styles, GREP styles, style sheet, portfolio book design, InDesign script, styles with AI
What are paragraph and character styles, and why use them?
Short answer. A style is a saved, named set of type formatting. A paragraph style formats a whole paragraph, such as a heading or a caption; a character style formats only selected words inside it, such as a bold term or a film title. Change the style once and every place that uses it changes.
A style is a saved set of formatting
A style stores type settings, such as font, size, leading, colour and spacing, under one name. Applying the style gives text all those settings in one click. Paragraph styles act on whole paragraphs; character styles act on selected characters.
- A paragraph is everything up to a return. Click anywhere in it and a paragraph style formats all of it.
- A character style changes only the settings it holds. A Bold term style that sets only the weight keeps the font, size and colour of the paragraph around it.
- InDesign, Illustrator and Photoshop all have Paragraph Styles and Character Styles panels. Word, Google Docs and websites use the same idea: heading styles and CSS classes.
- Every new InDesign document starts with one paragraph style, Basic Paragraph, and one character style, None.
See styles at work
- Open any InDesign document and the Paragraph Styles panel (F11, or Cmd+F11 on a Mac).
- Click inside a paragraph: its style is highlighted in the panel.
- Double-click the style name to see every setting it holds.
Name a style by its job, such as Caption, not by its look, such as Poppins 8. The look can change; the job stays.
- Open a magazine or a book you like.
- Mark every different kind of text on one spread: title, intro, body, caption and so on.
- Count them: that number is the number of paragraph styles the designer needed.
Why designers use styles
Styles make a design consistent, fast to build and easy to change. One change to a style updates every heading or caption in the document, and styles also build tables of contents, PDF tags and ebook structure.
| Without styles | With styles |
|---|---|
| Each caption formatted by hand | One click applies the Caption style |
| Changing the body size means editing every page | Change Body once and every page updates |
| Small differences creep in between pages | Every heading matches exactly |
| A table of contents is typed by hand | InDesign builds it from the heading styles |
| Exported PDFs have no structure for screen readers | Styles can map to PDF tags such as H1 and P |
Table 1. Working with and without styles.
- In a 40-page portfolio book with 80 captions, one style change can save an hour of clicking.
- InDesign builds a table of contents from chosen paragraph styles: Layout > Table of Contents.
- Styles can be loaded from one document into another, so a series of books or posters shares one look.
- Styles map to web structure too: a paragraph style can export as an HTML heading or paragraph tag.
Prove it on one page
- Format five captions by hand, then time how long a size change takes.
- Make a Caption style, apply it to all five, then change the style size.
- Compare the two times.
Set up styles before you lay out the first page, not at the end. Styling later means reformatting everything twice.
- Take a two-page layout you made earlier.
- List every place where two similar texts look slightly different.
- Write which style would have kept them the same.
A photo book with one Caption style keeps all 120 captions identical, and a late change from 8 pt to 7.5 pt takes one edit.
A website applies the same idea with CSS: one class for captions styles every caption on every page.
What does a paragraph style control?
Short answer. A paragraph style holds every setting of a paragraph: font, size, leading, tracking, alignment, indents, space before and after, hyphenation, keep options, rules, colour and bullets. Build styles as a family based on one Body style, and name them by role.
What a paragraph style holds
A paragraph style stores both character settings, such as font and size, and paragraph settings, such as alignment, indents and spacing. In InDesign these sit in sections of the Paragraph Style Options window.
| Section in InDesign | What it sets | Typical value for body text |
|---|---|---|
| Basic Character Formats | Font, style, size, leading, tracking, case | Lora Regular, 10 pt, leading 14 pt |
| Indents and Spacing | Alignment, indents, space before and after | Align left, space after 3 mm |
| Keep Options | Keep lines together, keep with next | Headings keep with the next 2 lines |
| Hyphenation | Whether and how words break | On for body, off for headings |
| Paragraph Rules | Lines above or below the paragraph | Off |
| Bullets and Numbering | Lists and numbered steps | Off for body |
| Character Color | Text colour | Black or a dark grey |
| Drop Caps and Nested Styles | Drop caps and automatic character styles | Off for body |
Table 2. The main sections of a paragraph style.
- Space before and after replaces empty returns. Never press Enter twice to make a gap; set space after in the style instead.
- Keep with next stops a heading from sitting alone at the bottom of a column.
- Leading can be set as a number, such as 14 pt, or Auto, which is 120 percent of the size. A fixed number is easier to control.
- A plus sign (+) after a style name in the panel means the selected text has an override: it differs from its style.
Make a Body style in InDesign
- Set one paragraph exactly as body text should look.
- Keep the cursor in it and click Create New Style at the bottom of the Paragraph Styles panel.
- Double-click the new style, name it Body, and check each section.
Use space before and after for gaps, never empty returns. Empty paragraphs break when text reflows.
- Open the Paragraph Style Options for Basic Paragraph.
- Write down the font, size, leading and space after.
- Create a Body style with your own choices and apply it to a page of text.
Naming styles and building a style family
A style family is a set of styles built from one base style using Based On. Name each style by its role and keep the set small: most books need about ten paragraph styles.
| Good name | Why it works | Avoid |
|---|---|---|
| Body | Says the job | Lora 10 |
| H1, H2, H3 | Matches the heading levels on the web and in PDFs | Big title, smaller title |
| Caption | Every photo label uses it | Text under photo 2 |
| Credit | Separate from caption, so it can be smaller | Small caption |
| Label | Short capital labels | Caps thing |
Table 3. Naming styles by role.
- Base most styles on Body. Change the Body font and every style based on it follows.
- Group related styles in folders in the panel: Headings, Text, Photo text.
- Keep the number small. If two styles differ only by one setting, ask whether you need both.
- Use the same names in InDesign, Photoshop and Figma, so files and people speak one language.
Organise the panel
- In the Paragraph Styles panel menu, choose New Style Group and name it Headings.
- Drag H1, H2 and H3 into the group.
- Make a second group, Photo text, for Caption, Credit and Label.
Use H1, H2 and H3 for headings. The same names then work for PDF tags, ebooks and websites.
- List the text roles of your next project.
- Give each one a role name from Table 3.
- Sort them into two or three style groups.
An exhibition catalogue can run on eight paragraph styles: H1, H2, Lead, Body, Caption, Credit, Label and Pull quote.
A web page uses the same roles: one h1, h2 for sections, p for body text and a caption class.
What does a character style do, and when do you use one?
Short answer. A character style formats selected letters or words inside a paragraph, such as a bold term, an italic film title or a brand name. It holds only the settings you give it, so it works inside any paragraph style.
Character styles for words inside a paragraph
A character style applies to selected characters only. Give it just the settings that should change, such as Bold or Italic, and leave the rest empty so the paragraph style shows through.
| Character style | What it sets | Used for |
|---|---|---|
| Bold term | Font style: Bold | Key words in body text |
| Italic title | Font style: Italic | Film, book and exhibition titles |
| Brand name | Poppins Medium | A company or brand inside running text |
| Superscript | Position: Superscript | Note numbers, 1st, 2nd |
| Highlight | Colour: ember | One word to catch the eye on a poster |
Table 4. Common character styles.
- Leave fields empty that should not change. A character style with only Bold set works in Lora body text and in Poppins captions.
- Film, book and exhibition titles are set in italics in English text: Rising Embers, not "Rising Embers".
- Clicking the bold button in the toolbar creates a local override; a character style keeps the change named and reusable.
- Quick Apply (Ctrl+Enter, or Cmd+Return on a Mac) lets you type a style name and apply it without the mouse.
Make a Bold term style in InDesign
- Open the Character Styles panel (Shift+F11, or Cmd+Shift+F11 on a Mac).
- Click Create New Style, then double-click it and name it Bold term.
- In Basic Character Formats, set only Font Style to Bold, and leave the font family empty.
If a character style sets the font family, it will force that family into every paragraph. Set only what must change.
- Write a caption that names a film and one key word.
- Make Italic title and Bold term character styles.
- Apply them, then change the paragraph font and check the styles still work.
Paragraph or character style: which one?
Use a paragraph style when the whole paragraph has one job, such as a caption. Use a character style when only some words inside a paragraph differ. Most text needs a paragraph style; character styles are the exceptions inside it.
| Situation | Use | Why |
|---|---|---|
| A whole caption under a photo | Paragraph style: Caption | The whole paragraph has one job |
| The photographer name inside the caption | Character style: Bold term | Only some words change |
| A chapter heading | Paragraph style: H1 | It is its own paragraph |
| A film title in body text | Character style: Italic title | Only the title changes |
| The first line of a chapter in capitals | Nested style or GREP style | The change follows a rule, automatically |
Table 5. Choosing the kind of style.
- If you select a whole paragraph to apply a character style, ask whether it should be a paragraph style instead.
- Paragraph and character styles stack: the paragraph style sets the base, the character style changes a few settings on top.
- To remove a character style from words, apply the character style called None.
Check a layout
- Turn on the Story Editor (Ctrl+Y, or Cmd+Y on a Mac) to see paragraph style names beside the text.
- Look for paragraphs with no style or with a plus sign.
- Apply the right paragraph style first, then character styles.
Apply paragraph styles first, then character styles. Applying a paragraph style with overrides cleared can remove local bold and italic, but character styles survive.
- Take a page of text with mixed formatting.
- Mark each change as paragraph or character.
- Rebuild the page using only styles.
In a portfolio caption, "Photo: Abin Alex" can be a Credit paragraph, while the word Photo is bolded by a nested character style.
On a web page, a paragraph style is like a p class, and a character style is like a span class inside it.
How do you create and manage styles in InDesign?
Short answer. In InDesign, create styles from formatted text in the Paragraph Styles (F11) and Character Styles (Shift+F11) panels, apply them with a click or Quick Apply, clear overrides, and redefine a style from changed text. Based On, Next Style and nested styles automate the rest.
Create, apply, override and redefine
InDesign styles live in the Paragraph Styles and Character Styles panels. You create a style from formatted text, apply it by clicking its name, clear overrides when text drifts from its style, and redefine a style when you want the change everywhere.
| Task | How in InDesign | Shortcut |
|---|---|---|
| Open Paragraph Styles | Window > Styles > Paragraph Styles | F11 (Cmd+F11 on a Mac) |
| Open Character Styles | Window > Styles > Character Styles | Shift+F11 (Cmd+Shift+F11) |
| Apply a style | Click the style name, or use Quick Apply | Ctrl+Enter (Cmd+Return) |
| Clear overrides | Click the Clear Overrides button, or Alt-click the style name | Alt-click (Option-click) |
| Redefine a style from text | Panel menu > Redefine Style | Ctrl+Alt+Shift+R (Cmd+Option+Shift+R) |
| Load styles from another file | Panel menu > Load Paragraph Styles | None |
Table 6. Style tasks in InDesign.
- Redefine Style takes the formatting of the selected text and saves it into the style, so every paragraph using it updates.
- Assign keyboard shortcuts to your most used styles in Style Options > Shortcut, using the number pad.
- Load Paragraph Styles copies styles from another InDesign file, which is how a series of books keeps one look.
- Illustrator has the same two panels under Window > Type, with fewer options than InDesign.
Fix a drifted paragraph
- Click in the paragraph showing a plus sign in the panel.
- Alt-click (Option-click) its style name to clear the overrides.
- If the change was intended, select the text and choose Redefine Style instead.
Before you redefine a style, check where else it is used. Redefine changes every paragraph with that style.
- Create H1, Body and Caption styles from formatted text.
- Change the Caption size by hand, then use Redefine Style.
- Check that every caption in the document updated.
Based On and Next Style
Based On links a style to a parent, so it inherits every setting it does not change. Next Style sets which style the next paragraph gets when you press Enter, so a heading is followed by Body automatically.
| Style | Based On | Changes | Next Style |
|---|---|---|---|
| Body | No Paragraph Style | Everything set here | Body |
| Lead | Body | Size 13, leading 19 | Body |
| H1 | Body | Poppins Bold 36/40, no hyphenation | Lead |
| H2 | Body | Poppins Medium 24/28 | Body |
| Caption | Body | Poppins Regular 8/11 | Caption |
| Credit | Caption | Medium 7/10 | Caption |
Table 7. A style family using Based On and Next Style.
- Change the colour of Body and every style based on it changes too, unless that style sets its own colour.
- Reset to Base, in Style Options, removes the changes made in that style, so it matches its parent again.
- With Next Style set, type a heading, press Enter and keep typing: the text below is already Body.
- Right-click a style and choose Apply then Next Style to format a whole story in one go.
Set Based On and Next Style
- Double-click H2 in the Paragraph Styles panel.
- In General, set Based On to Body and Next Style to Body.
- Click OK, then type a heading, press Enter and check the next paragraph.
Build every style on Body. Then a change of body font or colour moves the whole family in one step.
- Build Body, Lead and H1 with Based On set to Body.
- Set H1 Next Style to Lead and Lead Next Style to Body.
- Type a chapter opening without touching the panel.
Nested and GREP styles
A nested style applies a character style automatically to part of a paragraph, such as everything up to the first colon. A GREP style applies a character style to any text matching a pattern, such as every number or every mention of a brand name.
| Need | Tool | Setting |
|---|---|---|
| Bold the word before the colon in captions | Nested style | Bold term, through 1 colon |
| Small caps for the first line of a chapter | Nested line style | Label, through 1 line |
| Every price with the ₹ sign in bold | GREP style | ₹\d+ with Bold term |
| Every Creative Hut mention in Brand name | GREP style | Creative Hut with Brand name |
Table 8. Automatic character styles.
- Nested styles live in Paragraph Style Options > Drop Caps and Nested Styles.
- GREP styles live in Paragraph Style Options > GREP Style and use pattern matching, as in find and replace.
- Because they are part of the paragraph style, they update by themselves when the text changes.
- Start with nested styles; learn GREP when a rule depends on a pattern rather than a position.
Bold a caption label automatically
- Open Caption in Paragraph Style Options and go to Drop Caps and Nested Styles.
- Click New Nested Style, choose Bold term, then through, 1, and type a colon.
- Type Photo: Name in a caption and watch Photo: turn bold.
Nested styles save hours on captions and credits: type plain text and let the style format it.
- Add a nested style to your Caption style that bolds text up to the first colon.
- Type five captions in the form Place: description.
- Check that every label bolded without clicking.
A festival programme can use a GREP style to set every screening time in Bold term without touching a single line by hand.
InDesign styles can export to EPUB and HTML, where Body becomes p and H1 becomes h1.
How do paragraph and character styles work in Photoshop?
Short answer. Photoshop has Paragraph Styles and Character Styles panels under the Window menu. Create a style from a selected text layer, apply it to other layers, clear or redefine overrides, and save your styles as default type styles so every new file has them.
Create and apply styles in Photoshop
In Photoshop, a paragraph style is created from the formatting of a selected text layer. Apply it to any other text layer to match it, and use the panel to clear overrides or redefine the style.
| Task | How in Photoshop |
|---|---|
| Open the panels | Window > Paragraph Styles and Window > Character Styles |
| Create a style from text | Select the text layer, then click Create New Paragraph Style at the bottom of the panel |
| Rename or edit a style | Double-click the style to open Style Options |
| Apply a style | Select one or more text layers and click the style name |
| Clear an override | Click Clear Override at the bottom of the panel |
| Redefine from changed text | Panel menu > Redefine Style |
Table 9. Style tasks in Photoshop.
- A plus sign after a style name means the selected text differs from the style, just as in InDesign.
- You can select many text layers at once and apply a style to all of them.
- Styles are stored in the Photoshop file. A PSD template that holds your styles carries them to every poster made from it.
- Photoshop text styles are simpler than InDesign: there is no Next Style or nested style.
Make a Caption style in Photoshop
- Set one text layer in Poppins Regular 8 pt with your leading.
- Select the layer and click Create New Paragraph Style in the Paragraph Styles panel.
- Double-click the new style and rename it Caption.
Name Photoshop styles exactly as in InDesign. A Caption in a poster should match a Caption in the book.
- Open a poster PSD with several text layers.
- Create H1, Body and Caption styles from three of them.
- Apply them to the remaining layers and check for plus signs.
Save default type styles and share them
Photoshop can save the current styles as default type styles, so every new document starts with them. Styles can also be loaded from another PSD, which keeps a series of posters consistent.
| Need | How |
|---|---|
| Use my styles in every new file | Paragraph Styles panel menu > Save Default Type Styles |
| Bring defaults into an open file | Panel menu > Load Default Type Styles |
| Copy styles from another PSD | Panel menu > Load Paragraph Styles, then choose the PSD |
| Share with a team | Send a template PSD that holds the styles |
Table 10. Sharing Photoshop styles.
- Default type styles stay on your own computer. A classmate needs the template PSD or your saved defaults to match you.
- The fonts must be installed on every computer. A style that names a missing font shows a warning.
- Keep one template PSD per project with all styles, guides and colour swatches set.
Make styles your default
- Create your styles in one Photoshop file.
- In the Paragraph Styles panel menu, choose Save Default Type Styles.
- Make a new document, choose Load Default Type Styles and check the list.
For a series of social posts, build one template PSD with every style and duplicate it for each post.
- Build a poster template PSD with five styles.
- Save them as default type styles.
- Make a new file and load the defaults to confirm they appear.
An exhibition poster series made from one template PSD keeps the title, date and venue lines identical across ten posters.
Instagram carousels built from one template keep the same Caption and Label styles on every slide.
What style sheet does a photography portfolio book need?
Short answer. A portfolio book needs about eleven paragraph styles: H1, H2, H3, Subheading, Lead, Body, Caption, Credit, Label, Pull quote and Company name, plus three character styles: Bold term, Italic title and Brand name. Two families, such as Poppins and Lora, are enough.
The style roles for a portfolio book
A style sheet lists every style with its font, size, leading, spacing and alignment. For a portfolio book, a sans serif for headings and captions and a serif for reading text give clear contrast with only two families.
| Style | Font | Size/leading (pt) | Space | Alignment | Based on |
|---|---|---|---|---|---|
| H1 | Poppins Bold | 36/40 | 6 mm after | Left | Body |
| H2 | Poppins Medium | 24/28 | 8 mm before, 4 mm after | Left | Body |
| H3 | Poppins Medium | 16/20 | 5 mm before, 2 mm after | Left | Body |
| Subheading | Poppins Regular | 13/17 | 4 mm after | Left | Body |
| Lead | Lora Regular | 13/19 | 4 mm after | Left | Body |
| Body | Lora Regular | 10/14 | 3 mm after | Left | None |
| Caption | Poppins Regular | 8/11 | 1.5 mm before | Left | Body |
| Credit | Poppins Medium | 7/10 | 0 | Left | Caption |
| Label | Poppins Bold, caps, +100 | 8/10 | 2 mm after | Left | Body |
| Pull quote | Lora Italic | 18/24 | 6 mm before and after | Left | Body |
| Company name | Poppins Bold, caps, +50 | 11/14 | 0 | Left | Body |
Table 11. A sample portfolio book style sheet.
- Sizes like 10/14 mean 10 pt type on 14 pt leading.
- All the styles here are left aligned. A centred pull quote or cover title is a design choice, not a rule.
- Keep captions and credits in the sans serif. Small text reads better in a font with a larger x-height.
- Check every size printed at 100 percent before sending the book to print.
Build the sheet
- Copy Table 11 into your notes and adjust sizes for your page size.
- Create Body first, then every other style based on it.
- Print one test spread with every style on it.
Print a test spread with every style before you lay out the whole book. Small type always looks bigger on screen.
- Write your own style sheet for a 20-page portfolio.
- Choose two font families from the Typography guide.
- Print a test page with all eleven styles.
Character styles and text rules for the book
Character styles keep small details consistent: titles in italics, key terms in bold, brand names in one style. Text rules, such as how a caption is written, matter as much as the styles themselves.
| Element | Rule | Style |
|---|---|---|
| Film or series title | Italic, as written on the poster | Italic title |
| Key term in body text | Bold, once per paragraph at most | Bold term |
| Company or brand name | Poppins Medium, same spelling every time | Brand name |
| Caption | Place, year. One line about the light or moment. | Caption |
| Credit | Photo: Name. Assistant: Name. | Credit, with nested bold up to the colon |
Table 12. Character styles and writing rules for a portfolio.
- Write captions in one fixed order on every page, for example place, year, then one line.
- Use bold rarely. If every line has a bold word, nothing stands out.
- Spell names the same way every time: decide once, for example Creative Hut Academy, and keep it.
Apply the rules
- Write all captions in a plain text file first, in the fixed order.
- Place the text in InDesign and apply Caption to all of it.
- Search for titles and brand names and apply the character styles.
Write the caption rule at the top of your style sheet, so anyone editing the book follows it.
- Write ten captions using the rule place, year, one line.
- Add a credit line to each.
- Apply Caption, Credit and the nested bold.
A 24-page portfolio book can be styled in one afternoon with eleven paragraph styles and three character styles.
The same style sheet becomes the portfolio website: H1 for project titles, Body for stories and Caption under every photo.
How do you make your styles with AI?
Short answer. Ask Claude, ChatGPT or Gemini for a style sheet from your roles and fonts, then ask it to turn the sheet into an InDesign script that creates every style in one run. For Photoshop, a script builds a specimen file and you save each layer as a style. Always check the result yourself.
Prompt 1: an AI style sheet
A chat AI can turn your project details into a full style sheet: every role from H1 to Company name, with font, weight, size, leading, spacing, alignment, Based On and Next Style. You give the roles and fonts; the AI fills in the numbers for you to check.
I am designing a [DOCUMENT, FOR EXAMPLE A PHOTOGRAPHY PORTFOLIO BOOK], [PAGE SIZE], printed on [PAPER] and also shared as a PDF. Tone: [TONE]. Fonts: headings and captions in [SANS FONT], reading text in [SERIF FONT], both installed from Google Fonts. Make a style sheet as a table with these paragraph styles: H1, H2, H3, Subheading, Lead, Body, Caption, Credit, Label, Pull quote, Company name. For each, give: font and weight, size and leading in pt, tracking, space before and after in mm, alignment, hyphenation on or off, Based On (most on Body) and Next Style. Also list three character styles: Bold term, Italic title, Brand name. Each should set only the settings that change. Use a type scale with a ratio of [RATIO, FOR EXAMPLE 1.25]. Body text 9.5 to 11 pt. No more than two font families.
- Fill every bracket. The more the AI knows about page size and paper, the better its sizes.
- Ask for a table, so the answer can go straight into Prompt 2.
- Check the numbers against the Typography guide: body 9.5 to 11 pt, leading about 1.3 to 1.5 times the size.
- If the AI suggests a font you do not have, ask it to use only the two you named.
Use Prompt 1
- Copy the prompt, fill the brackets and send it to Claude, ChatGPT or Gemini.
- Read the table and correct anything that does not suit your book.
- Keep the final table; you will paste it into Prompt 2.
The AI gives a first draft of numbers. Print a test page and adjust by eye before you build the whole book.
- Run Prompt 1 for your own portfolio book.
- Compare its sizes with Table 11 in this guide.
- Change two values and write why.
Prompt 2: an InDesign script that builds every style
InDesign can run scripts written in JavaScript (.jsx files). A chat AI can write a script from your style sheet that creates every paragraph and character style in one run, including Based On, Next Style and a nested style.
Write an Adobe InDesign ExtendScript (.jsx) file that creates these styles in the active document: [PASTE THE STYLE SHEET TABLE].
Rules for the script:
1. Start with #target indesign and stop with a message if no document is open.
2. If a style with the same name exists, update it instead of making a duplicate.
3. Create the character styles first, then Body, then every other paragraph style with basedOn set to Body.
4. Set appliedFont, fontStyle, pointSize, leading, tracking, spaceBefore, spaceAfter, justification, hyphenation, capitalization and keepWithNext for headings.
5. Set nextStyle for each style as in the table.
6. Add a nested style to Caption that applies Bold term up to and including the first colon.
7. Wrap each property in try and catch so a missing font does not stop the script.
8. Run everything through app.doScript with UndoModes.ENTIRE_SCRIPT, so one undo removes it.
9. End with an alert that lists how many styles were made.
Return only the script, with short comments.// ch-portfolio-styles.jsx
// Creates the paragraph and character styles for a photography portfolio book.
// InDesign: open your document, then double-click this script in Window > Utilities > Scripts.
// Fonts: Poppins and Lora from Google Fonts. Install them first, or change the two names below.
// Running it again updates the styles; it never deletes text. Undo with one Ctrl+Z (Cmd+Z).
#target indesign
var SANS = "Poppins";
var SERIF = "Lora";
function main() {
if (app.documents.length === 0) {
alert("Open or create a document first, then run the script again.");
return;
}
var doc = app.activeDocument;
function pStyle(name, props) {
var s = doc.paragraphStyles.itemByName(name);
if (!s.isValid) { s = doc.paragraphStyles.add({ name: name }); }
for (var k in props) {
try { s[k] = props[k]; } catch (e) { }
}
return s;
}
function cStyle(name, props) {
var s = doc.characterStyles.itemByName(name);
if (!s.isValid) { s = doc.characterStyles.add({ name: name }); }
for (var k in props) {
try { s[k] = props[k]; } catch (e) { }
}
return s;
}
// Character styles: they change only what they set.
var boldTerm = cStyle("Bold term", { fontStyle: "Bold" });
cStyle("Italic title", { fontStyle: "Italic" });
cStyle("Brand name", { appliedFont: SANS, fontStyle: "Medium" });
// Base style: everything else is based on Body.
var body = pStyle("Body", {
appliedFont: SERIF, fontStyle: "Regular", pointSize: 10, leading: 14,
spaceBefore: 0, spaceAfter: "3mm", firstLineIndent: 0,
justification: Justification.LEFT_ALIGN, hyphenation: true
});
var h1 = pStyle("H1", {
basedOn: body, appliedFont: SANS, fontStyle: "Bold", pointSize: 36, leading: 40,
spaceBefore: 0, spaceAfter: "6mm", hyphenation: false, keepWithNext: 2
});
var h2 = pStyle("H2", {
basedOn: body, appliedFont: SANS, fontStyle: "Medium", pointSize: 24, leading: 28,
spaceBefore: "8mm", spaceAfter: "4mm", hyphenation: false, keepWithNext: 2
});
var h3 = pStyle("H3", {
basedOn: body, appliedFont: SANS, fontStyle: "Medium", pointSize: 16, leading: 20,
spaceBefore: "5mm", spaceAfter: "2mm", hyphenation: false, keepWithNext: 2
});
pStyle("Subheading", {
basedOn: body, appliedFont: SANS, fontStyle: "Regular", pointSize: 13, leading: 17,
spaceAfter: "4mm", hyphenation: false
});
var lead = pStyle("Lead", {
basedOn: body, pointSize: 13, leading: 19, spaceAfter: "4mm"
});
var caption = pStyle("Caption", {
basedOn: body, appliedFont: SANS, fontStyle: "Regular", pointSize: 8, leading: 11,
spaceBefore: "1.5mm", spaceAfter: 0, hyphenation: false
});
pStyle("Credit", {
basedOn: caption, fontStyle: "Medium", pointSize: 7, leading: 10
});
pStyle("Label", {
basedOn: body, appliedFont: SANS, fontStyle: "Bold", pointSize: 8, leading: 10,
capitalization: Capitalization.ALL_CAPS, tracking: 100,
spaceAfter: "2mm", hyphenation: false
});
pStyle("Pull quote", {
basedOn: body, fontStyle: "Italic", pointSize: 18, leading: 24,
spaceBefore: "6mm", spaceAfter: "6mm", hyphenation: false
});
pStyle("Company name", {
basedOn: body, appliedFont: SANS, fontStyle: "Bold", pointSize: 11, leading: 14,
capitalization: Capitalization.ALL_CAPS, tracking: 50, hyphenation: false
});
// Next Style: press Enter after a heading and the next paragraph becomes Body.
h1.nextStyle = lead;
lead.nextStyle = body;
h2.nextStyle = body;
h3.nextStyle = body;
body.nextStyle = body;
// Nested style: in a caption, everything up to the first colon is bold.
try {
while (caption.nestedStyles.length > 0) { caption.nestedStyles[0].remove(); }
caption.nestedStyles.add({
appliedCharacterStyle: boldTerm, delimiter: ":", inclusive: true, repetition: 1
});
} catch (e) { }
alert("Done: 11 paragraph styles and 3 character styles. Check them in the Paragraph Styles panel (F11).");
}
app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Creative Hut portfolio styles");
| Step | What to do |
|---|---|
| 1. Save the script | Copy the script into a plain text file named ch-portfolio-styles.jsx (in Notepad or TextEdit set to plain text). |
| 2. Find the Scripts folder | InDesign: Window > Utilities > Scripts. Right-click the User folder and choose Reveal in Explorer (Reveal in Finder on a Mac). |
| 3. Put it there | Move the .jsx file into that folder. It appears in the Scripts panel. |
| 4. Run it | Open your book file, then double-click the script in the panel. |
| 5. Check | Open the Paragraph Styles panel (F11) and check every style. |
Table 13. Installing and running an InDesign script.
- With the Claude desktop app and a folder on your computer connected, Claude can save the .jsx file straight into the InDesign Scripts folder for you. You still run it in InDesign yourself.
- Run new scripts on a copy of your file first. One Ctrl+Z (Cmd+Z) undoes the whole sample script.
- If a font is missing, the script still runs and the style shows the font as missing. Install Poppins and Lora, then run it again.
- Keep the script. It rebuilds the same styles in every new book in seconds.
Use Prompt 2
- Paste your Prompt 1 table into the brackets of Prompt 2 and send it.
- Save the answer as a .jsx file and place it in the Scripts folder.
- Run it on a test document and check every style.
Read the alert at the end and open three styles to check their settings. A script is fast, but you are the one who signs off.
- Install the sample script and run it on a new A4 document.
- Type a heading, a paragraph and a caption with Photo: at the start.
- Check that Next Style and the nested bold work.
Photoshop: build a specimen, then save each style
Photoshop scripts cannot reliably create paragraph styles, so use a script to build a type specimen instead: one text layer per role, already set in the right font, size and leading. Then save each layer as a style yourself, which takes a few minutes.
Write an Adobe Photoshop ExtendScript (.jsx) file that makes a type specimen document: A4 at 300 ppi, white background, one text layer per style below, named after the style, set in its font (use PostScript names, such as Poppins-Bold), size and leading in points, placed one under another with clear space: [PASTE THE STYLE SHEET TABLE].
Restore my ruler and type units at the end, and finish with an alert. Do not try to create paragraph styles in the script; I will save each layer as a style myself.// ch-photoshop-specimen.jsx
// Builds a Photoshop type specimen: one text layer per style role, already set in its font and size.
// Then save each layer as a paragraph style by hand (Photoshop scripts cannot reliably create styles).
// Photoshop: File > Scripts > Browse, then choose this file.
// Fonts use PostScript names. Install Poppins and Lora first, or change the names below.
#target photoshop
var ROLES = [
["H1", "Portfolio 2026", "Poppins-Bold", 36, 40],
["H2", "Behind the light", "Poppins-Medium", 24, 28],
["H3", "Studio portraits", "Poppins-Medium", 16, 20],
["Subheading", "Six weeks in the studio", "Poppins-Regular", 13, 17],
["Lead", "A short line that sets the story.", "Lora-Regular", 13, 19],
["Body", "Text for the story behind each photo.", "Lora-Regular", 10, 14],
["Caption", "Kottayam, 2026. One key light, no fill.", "Poppins-Regular", 8, 11],
["Credit", "Photo: Your Name", "Poppins-Medium", 7, 10],
["Label", "CHAPTER TWO", "Poppins-Bold", 8, 10],
["Pull quote", "Light decides the mood.", "Lora-Italic", 18, 24],
["Company name", "CREATIVE HUT ACADEMY", "Poppins-Bold", 11, 14]
];
var oldUnits = app.preferences.rulerUnits;
var oldType = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.POINTS;
var doc = app.documents.add(2480, 3508, 300, "Style specimen", NewDocumentMode.RGB, DocumentFill.WHITE);
var y = 300;
for (var i = 0; i < ROLES.length; i++) {
var r = ROLES[i];
var layer = doc.artLayers.add();
layer.kind = LayerKind.TEXT;
layer.name = r[0];
var t = layer.textItem;
t.contents = r[1];
try { t.font = r[2]; } catch (e) { }
t.size = r[3];
t.useAutoLeading = false;
t.leading = r[4];
if (r[0] === "Label") { t.tracking = 100; }
if (r[0] === "Company name") { t.tracking = 50; }
t.position = [200, y];
y += Math.round(r[4] * 300 / 72) + 120;
}
app.preferences.rulerUnits = oldUnits;
app.preferences.typeUnits = oldType;
alert("Specimen ready: 11 text layers. Now save each one as a paragraph style.");
Run it and save the styles
- In Photoshop choose File > Scripts > Browse and pick ch-photoshop-specimen.jsx.
- Select the H1 layer, click Create New Paragraph Style in the Paragraph Styles panel, double-click the new style and rename it H1.
- Repeat for each layer, then choose Save Default Type Styles from the panel menu.
- Photoshop needs PostScript font names, such as Poppins-Bold or Lora-Italic. If a font does not apply, check the exact name in the font menu.
- The specimen is also a good poster for the studio wall: every style in one place.
- Save the specimen as a PSD template so the styles travel with it.
Do the style saving yourself once; it teaches you what each style holds better than any script.
- Run the Photoshop specimen script.
- Save all eleven layers as paragraph styles with the same names.
- Make a poster with them and check for plus signs.
A class can share one style sheet and one script, so every student portfolio book starts from the same clean set of styles.
The same Prompt 1 table can be turned into CSS classes for a portfolio website, keeping print and web in step.
Questions beginners ask
A paragraph style formats a whole paragraph, such as a heading or caption. A character style formats only selected words inside it, such as a bold term or a film title.
Press F11 for Paragraph Styles and Shift+F11 for Character Styles on Windows, or Cmd+F11 and Cmd+Shift+F11 on a Mac. Both are also under Window > Styles.
The selected text has an override: it differs from its style. Clear the override to match the style, or redefine the style to keep the change everywhere.
Yes. Window > Paragraph Styles and Window > Character Styles. Create a style from a selected text layer and apply it to other layers.
Yes. A chat AI can write a .jsx script from your style sheet; you place it in the InDesign Scripts folder and run it. Check the styles after it runs.
About ten to twelve, such as H1, H2, H3, Subheading, Lead, Body, Caption, Credit, Label, Pull quote and Company name.
Further reading
- Adobe (2025) InDesign user guide: paragraph and character styles. San Jose, CA: Adobe.
- Adobe (2025) Photoshop user guide: paragraph and character styles. San Jose, CA: Adobe.
- Adobe (2020) Adobe InDesign scripting guide: JavaScript. San Jose, CA: Adobe.
- Bringhurst, R. (2012) The elements of typographic style. 4th edn. Seattle, WA: Hartley & Marks.
- Lupton, E. (2010) Thinking with type: a critical guide for designers, writers, editors and students. 2nd edn. New York: Princeton Architectural Press.
Make this your craft at Creative Hut Academy
Creative Hut Academy in Mattakkara, Kottayam, Keralam teaches photography, cinematography, editing, sound and AI filmmaking in one-year residential diplomas. Students come from across India.
Want to talk? Message us on WhatsApp, or ask Cham, our AI mentor, a study doubt.